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
var tempArrays = {}; | |
function getArray(size) { | |
var tmp = tempArrays[size]; | |
if (tmp) { | |
return tmp; | |
} | |
tmp=tempArrays[size] = new Uint8ClampedArray(size * 4); |
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
getPlaylistSongs = function(options) { | |
var deferred = Q.defer(); | |
this._doRequest(YouTubeServiceType.PlaylistItems, { | |
part: 'contentDetails', | |
maxResults: 50, | |
playlistId: options.playlistId, | |
pageToken: options.pageToken || '', | |
fields: 'nextPageToken, items/contentDetails/videoId' |
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
// Write a function 'find' in javascript that takes two argumens: | |
// N: A 2D Array of numbers where each row and each column are sorted in ascending order. | |
// v: A number | |
// If v is present in N, then find should return the position of v in N | |
// otherwise find should return false. | |
// Notes: | |
// Your code should be readable and efficient. | |
// You may NOT use the Javascript indexOf function in your code. | |
// For more clarification on the problem, see the example inputs below. |
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
<ion-tab title="Title One!">Content 1</ion-tab> | |
<ion-tab title="Title Two!">Content 2!</ion-tab> | |
@Component({ | |
selector: 'ion-tab', | |
model:{ | |
title:'title' | |
} | |
}) |
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.io.*; | |
import java.util.*; | |
public class Names { | |
public static void main(String[] args) throws FileNotFoundException { | |
Scanner input = new Scanner(new File("names.txt")); | |
Scanner console = new Scanner(System.in); | |
String text = ""; |
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.io.*; | |
import java.util.*; | |
public class Names { | |
public static void main(String[] args) throws FileNotFoundException { | |
Scanner console = new Scanner(System.in); | |
Scanner input = new Scanner(new File("names.txt")); | |
String text = ""; |
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.io.*; | |
import java.util.*; | |
public class NameApp { | |
private String name; | |
private int[] popularityRanks; | |
public static void main (String[] args) throws FileNotFoundException { |
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
var page = new tabris.Page({ | |
title: "TabFolder - Swipe", | |
topLevel: true | |
}); | |
var sv = new tabris.ScrollView({ | |
left: 0, | |
top: 50, | |
height: 400, | |
background: "#AB47BC" |
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 cse360assign1; | |
import java.util.*; | |
public class stringList { | |
private ArrayList<String> list; | |
private int count; | |
boolean DEBUG = true; | |
stringList() { |
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
<html> | |
<head> | |
<title>Bezier</title> | |
</head> | |
<body> | |
<canvas id="canvas" width="1500" height="1200"></canvas> | |
<input type="range" value="0.5" oninput="updateBezier(this.value)" min="0" max="1" step="0.005" style="position:absolute; width:98%; left:0; top:0;" /> | |
<script type="text/javascript"> | |
function Point(x, y) { | |
this.x = x; |
OlderNewer