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
[ | |
{ | |
"name": "The Greenbrier Resort", | |
"lat": "37.786699", | |
"lng": "-80.304993" | |
}, | |
{ | |
"name": "Mount Weather", | |
"lat": "39.0624489", | |
"lng": "-77.8883457" |
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
Show hidden characters
{ | |
// JSHint Default Configuration File (as on JSHint website) | |
// See http://jshint.com/docs/ for more details | |
"maxerr" : 50, // {int} Maximum error before stopping | |
// Enforcing | |
"bitwise" : true, // true: Prohibit bitwise operators (&, |, ^, etc.) | |
"camelcase" : false, // true: Identifiers must be in camelCase | |
"curly" : true, // true: Require {} for every new block or scope |
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
define([], function(){ | |
var Calc = function(){ | |
}; | |
Calc.prototype.multiply = function(a, b){ | |
return a * b; | |
}; | |
return Calc; | |
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 ModuleName = (function(){ | |
var methodName = function(){ | |
// do something... | |
}; | |
var anotherMethodName = function(){ | |
// do something else... | |
}; | |
return { | |
methodName: methodName, |
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 https = require('https'); | |
var fs = require('fs'); | |
var express = require('express'); | |
var app = express(); | |
var lti = require('ims-lti'); | |
var ssl_options = { | |
key: fs.readFileSync(__dirname + '/ssl/localhost.key'), | |
cert: fs.readFileSync(__dirname + '/ssl/localhost.crt'), | |
requestCert: false, |
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
# Dockerfile to build Python WSGI Application Containers | |
# Based on Ubuntu | |
############################################################ | |
# Set the base image to Ubuntu | |
FROM ubuntu | |
# File Author / Maintainer | |
MAINTAINER Maintaner Name |
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 http = require("http"); | |
var https = require("https"); | |
var parseString = require('xml2js').parseString; | |
var Metadata = require('fluent-ffmpeg').Metadata; | |
var fs = require("fs"); | |
var stream = fs.createWriteStream("itunesu.csv"); | |
var jsdom = require("jsdom"); | |
var channels = {courses: [819616149, 512201207, 571347835, 566636297, 786312091, 624655973, 613647256, 502492375, | |
529181544, 670536578, 670536610, 670535516, 625966490, 670536607, 670535213, 670662986, 625902714], |
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 https = require("https"); | |
var fs = require("fs"); | |
var stream = fs.createWriteStream("youtube.csv"); | |
var nameArray = ["Harvard", "HarvardBSchool", "HarvardKennedySchool", "HarvardEducation", "HarvardLawSchool", "HarvardMedicalSchool", "HarvardPublicHealth", "TheHarvardGSD", "HarvardDivinity", "BerkmanCenter", "AshInstitute", "HarvardBusiness", "Harvardilab", "HarvardExtension", "HarvardCPL", "ArnoldArboretum", "GreenIsTheNewCrimson", "BelferCenter"]; | |
var start = 1; | |
var url = function(name, start){ | |
return "https://gdata.youtube.com/feeds/api/users/"+name+"/uploads?alt=json&start-index="+start+"&max-results=50&caption=false"; | |
} | |
var output = ''; |
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
<?php | |
class QActiveRecord extends CActiveRecord { | |
public function afterSave(){ | |
if(Yii::app()->db->driverName == 'oci'){ | |
try { |
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
<?php | |
class Autoincrement { | |
function up($table_name, $driver){ | |
if($driver == 'mysql') { | |
$createAutoincrement = <<< SQL | |
ALTER TABLE $table_name MODIFY COLUMN id INT NOT NULL AUTO_INCREMENT | |
SQL; | |
NewerOlder