This file contains 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 strip=[0]; | |
var index=0; | |
var loopStack=new Array(); | |
var loopFlag=0; | |
var innerLoopCount=0; | |
input=document.getElementById('inp').value; | |
for(i=0;i<input.length;i++){ | |
var element=input[i]; | |
if(loopFlag==1){ | |
if(element=='[') |
This file contains 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 DARK KNIGHT logo openGL code | |
//--Brad | |
//change the include files accordingly | |
#include <stdlib.h> | |
#include<GL/gl.h> | |
#include<GL/glu.h> | |
#include<GL/glut.h> | |
#include<unistd.h> |
This file contains 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
[{date: | |
'7-1-13', | |
pepsi: 2, | |
dietPepsi: 3 | |
},{date: | |
'10-1-13', | |
mountainDew: 2, | |
frooti: 2, |
This file contains 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
# ************************************************** | |
# ND Encription algorithm (nde) | |
# - derived from phonetics of words | |
# - replacing the first two consonent sounds of every word | |
# - works best for tamil words written in english | |
# Authors: | |
# Bharath => Rabhath | |
# Dhinesh => Nidhesh | |
# ************************************************** |
This file contains 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
// - If a is not found | |
// - iterate through the input | |
// - If it output doesn't exist | |
// - Check if inputs have value | |
// - If so calculate output and add value | |
// - Else add the equation | |
// - If the output has value(number), ignore | |
// - If the output has equation, try to calculate | |
// - Reapeat |
This file contains 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
/node_modules | |
npm-debug.log |
This file contains 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.ArrayList; | |
import java.util.List; | |
import java.util.regex.Matcher; | |
import java.util.regex.Pattern; | |
import net.sf.sahi.client.Browser; | |
import net.sf.sahi.client.ElementStub; | |
public class JQuery { | |
protected Browser browser; |
This file contains 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
max="$1" | |
date | |
echo "url: $2 | |
rate: $max calls / second" | |
START=$(date +%s); | |
get () { | |
curl -s -v "$1" 2>&1 | tr '\r\n' '\\n' | awk -v date="$(date +'%r')" '{print $0"\n-----", date}' >> /tmp/perf-test.log | |
} |
This file contains 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
'use strict' | |
const _utils = require('./_utils') | |
function getColumns(game) { return game.board } | |
function getRows(game) { return _utils.inverse2D(game.board) } | |
function getNWDiagonals(game) { | |
return _utils.range(game.width + game.height - 1).map(edge => { |
This file contains 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
'use strict' | |
const fs = require('fs') | |
// util function modified from github.com/bucaran/sget | |
function readLineSync(message) { | |
message = message || '' | |
const win32 = () => 'win32' === process.platform | |
const readSync = function(buffer) { | |
var fd = win32() ? process.stdin.fd : fs.openSync('/dev/stdin', 'rs') | |
var bytes = fs.readSync(fd, buffer, 0, buffer.length) |
OlderNewer