This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| (function($){ | |
| Backbone.sync = function(model, method, options) { | |
| options.success(); | |
| } | |
| var Item = Backbone.Model.extend({ | |
| defaults: { | |
| name: "itemname", | |
| description: "item description", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| (function($){ | |
| Backbone.sync = function(method, model, success, error){ | |
| success(); | |
| } | |
| var Item = Backbone.Model.extend({ | |
| defaults: { | |
| name: "Item Name" | |
| }, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /** | |
| * The first commented line is your dabblet’s title | |
| */ | |
| background: #f06; | |
| background: linear-gradient(18deg, #f06, #f03); | |
| min-height:100%; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #include<stdio.h> | |
| int check(int a[5],int inp[20],int ti) { | |
| int i=0; | |
| for(i=0;i<3;i++) { | |
| if(a[i]==inp[ti]) { | |
| return 0; | |
| } | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import sys | |
| #Function to return the distance between two strings - Levenshtein distance | |
| a = sys.argv[1] | |
| b = sys.argv[2] | |
| def lv_number(a, b): | |
| string1 = a |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package defaultPackage; | |
| public class Program { | |
| public static void main(String args[]) { | |
| WaterJug w = new WaterJug(); | |
| w.checkGoal(); | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package defaultPackage; | |
| public class AStar { | |
| public static void main(String args[]) { | |
| Node n1 = new Node(); | |
| n1.label = "A"; | |
| Node n2 = new Node(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| appView = new ImageView( | |
| width: 480 | |
| height: 640 | |
| x: (window.innerWidth / 2) - 240 | |
| y: 0 | |
| image: "../images/appBg.png" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| public class hash { | |
| Node[] table; | |
| int Table_size; | |
| public class Node | |
| { | |
| String Name; | |
| int count; | |
| public Node() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| //import java.util.HashMap; | |
| public class Graph { | |
| Node root; | |
| public Graph() | |
| { | |
| this.root = null; | |
| } | |
| public Graph(int num) |
OlderNewer