Welcome To Snipplr

Everyone's Recent Snippets Tagged object

« Prev 1 2 3 4 5 6
  1. FAV

    Object Dependencies TSQL

    Get all SQL Server object dependencies
    SQL 1 views posted 3 years ago by joachimpr
  2. FAV

    How to Add Rectangle or Line Object to An Existing PDF File using .NET

    This technical tip shows how .NET developers can add line object to an Existing PDF File inside their .NET applications. Aspose.Pdf for .NET supports the feature to add graph objects (for example graph, line, rectangle etc.) to PDF documents. You als...
    C# 3 views posted 3 years ago by sherazam
  3. FAV

    Remove an item from array using UnderscoreJS

    Using underscore.js, you could combine .findWhere with .without Although, since you are creating a new array in this case anyway, you could simply use _.filter or the native Array.prototype.filter function (just like shown in the other question)....
    JavaScript 5 views posted 4 years ago by Balamir
  4. FAV

    Copy object by value instead of by reference

    To do this for any object in JavaScript will not be simple or straightforward. You will run into the problem of erroneously picking up attributes from the object's prototype that should be left in the prototype and not copied to the new instance. If,...
    JavaScript 5 views posted 4 years ago by BrentS
  5. FAV

    Javascript object template

    A template for a javascript object with a object.create shiv to condense into object prototypes
    JavaScript 7 views posted 5 years ago by rickygri
  6. FAV

    Create new Object From Variable in JavaScript

    This example of code allows you to create a new object in javascript (using simple inheritance) such that the class of the object is defined from a variable. After creating the object you may use it for your purposes.
    JavaScript 4 views posted 5 years ago by apphp-snippets
  7. FAV

    Simple Spritesheet

    Very simple use of an non-animating spritesheet for iOS
    Objective C 3 views posted 5 years ago by sidneydekoning
  8. FAV

    OOP Javascript Template with constructor and inheritance

    From @blixt http://stackoverflow.com/users/119081/blixt As you can see, the classes correctly interact with each other (they share the static id from MyClass, the announce method uses the correct get_name method, etc.) One thing to note is the...
    JavaScript saved by 2 people 7 views posted 5 years ago by rickygri
  9. FAV

    Convert PDF from Remote Server to other Format using Aspose.Pdf for Cloud API in PHP

    Aspose.PDF for Cloud API has released PHP SDK which allows PHP developers to convert PDF files uploaded to a remote server to other formats. You can pass URL and format parameters to specify the PDF’s URL and output format and use the PUT method of...
    PHP 5 views posted 5 years ago by johansonkatherine
  10. FAV

    C#/.NET Code Samples to Save Microsoft OneNote (.one) file as an image (.PNG, .BMP, .JPEG, .GIF) file

    The Aspose.Note for .NET API allows developers to open files & manipulate elements of OneNote books & export them to PNG, GIF, JPEG, BMP and PDF formats. The following code sample shows developers how to save OneNote File as an image in C#/.NET
    C# 3 views posted 5 years ago by johansonkatherine
  11. FAV

    List locked object Oracle Database

    List locked object Oracle Database using V$LOCKED_OBJECT view
    SQL 2 views posted 6 years ago by ceduard0
  12. FAV

    Template for a Javascript function with optional and mandatory arguments passed as an object collection

    A simple template for a JavaScript function which allows for an arbitrary number of named arguments to be passed in. This is achieved by passing a single object as an argument with each of the 'real' arguments being a key/value pair. In this way argu...
    JavaScript 8 views posted 7 years ago by davidwaterston
  13. FAV

    xcode Objective C - build class / objects

    Example of how to build and call a class or object
    Objective C 6 views posted 7 years ago by kutyadog
  14. FAV

    JSON Tree(1 function 15 lines)Nested Ul from single or multidimensional json object

    Any valid json object will be recursively traversed building a nested unordered list of its properties and their values. This example parses the json entered in the text area into an object that is passed to the json_tree() function. I use the twit...
    JavaScript 8 views posted 7 years ago by halk
  15. FAV

    objectToArray Part 2

    If you want to use this in a class, change the last line to: ` return array_map(array($this, __FUNCTION__), $object ); `
    PHP 6 views posted 7 years ago by jgomez
  16. FAV

    PHP - Convert an object to an associative array

    Converts a php object to an associative array
    PHP saved by 3 people 5 views posted 7 years ago by satie83
  17. FAV

    Make an empty object in JavaScript

    `Object.create(null)` is a more memory-efficient way to make objects, but it's not supported in all versions of JavaScript, so you can do the "old-fashioned" `{}` if that function isn't available.
    JavaScript 0 views posted 7 years ago by EvanHahn
  18. FAV

    Sort a object array

    Sorts an array of objects using the native sortOn method
    ActionScript 3 6 views posted 7 years ago by Narayon
  19. FAV

    Get Object Size in JS

    Function to validate the existence of each key in the object to get the number of valid key/value pairs.
    JavaScript 3 views posted 7 years ago by reverend
  20. FAV

    concept: php multidimentional methods

    A class i started to implement, which ended up in a working concept However I'm not sure if it's a legal way of programming since I unnessesery changes the structure of php without some real value except nicer structure For now it remain a conce...
    PHP 3 views posted 8 years ago by Knarf
  21. FAV

    Optional function arguments/parameters by using associative array

    By not being limited to provide certain arguments/parameters in right order when calling a function, makes the function more versatile and easier to extend without breaking old code (e.g. calls to the function). One solution is to pass an associati...
    JavaScript 3 views posted 8 years ago by coprolit
  22. FAV

    JavaScript Object Prototypal inheritance

    an operator that implements true prototypal Object inheritance in JavaScript
    JavaScript 2 views posted 8 years ago by luizlopes
  23. FAV

    get RGBA values as an object

    this function gets a parameter like an hex color (es: "#ffffff"), an abbreviated hex color (es: "#fff"), an rgb color (es: "rgb(255,255,255)") or an rgba color (es: "rgba(255,255,255,1)"), and returns an object containing the rgba values, like { red:...
    JavaScript 1 views posted 8 years ago by claudiowebdesign
  24. FAV

    Sort array of objects by object\'s property

    Used to sort array of objects by it's property Note: Anonymous functions are available since PHP 5.3.0.
    PHP 4 views posted 8 years ago by Rain
  25. FAV

    [WordPress] Get Posts By Term and Sort Them

    1. Get Posts however you see fit 2. Loop through the posts getting the terms from taxonomies and add them to the Post object 3. Sort the Array of Post Objects by the property you want them sorted by using sort_on_field()
    PHP 4 views posted 8 years ago by kingkool68
  26. FAV


    ActionScript 3 5 views posted 8 years ago by okhy
  27. FAV

    Remove and null all children of a display object container

    I create this recursive function to remove and null all children inside a display object container.
    ActionScript 3 8 views posted 8 years ago by radykal
  28. FAV

    multidimensional array to multidimensional object

    PHP 0 views posted 8 years ago by freezy
  29. FAV

    New Object Embed for SWF

    Hey guys, I struggled a little to find a crossbrowser, non repetitive params way to embed swfs; this object embed works flawlessly for me in all browsers - ie7, ie8, safari, chrome, firefox. Why is swfobject and YouTube using this format - http://cod...
    HTML 3 views posted 8 years ago by digitalzoomstudio
  30. FAV

    AS3 Load and access JSON data example

    For this to work you need the as3corelib classes from here ... https://github.com/mikechambers/as3corelib
    ActionScript 3 12 views posted 8 years ago by adrianparr
« Prev 1 2 3 4 5 6