Skip to content

Instantly share code, notes, and snippets.

View shivajivarma's full-sized avatar
👨‍🍳
Baking Code

Shivaji Varma Pusapati Venkata shivajivarma

👨‍🍳
Baking Code
View GitHub Profile
@shivajivarma
shivajivarma / gist:67b487f34cf5cdfb1669
Created November 10, 2014 06:55
$.getScript() in IE8 #1849
<!DOCTYPE html>
<html>
<head>
<script src="//code.jquery.com/jquery-1.11.1.min.js"></script>
<script>
$.getScript( "/no-such-file.js", function( data, textStatus, jqxhr ) {
console.log( data ); // Data returned
console.log( textStatus ); // Success
console.log( jqxhr.status ); // 200
console.log( "Load was performed." );
var http = require("http"),
url = require("url"),
path = require("path"),
fs = require("fs")
port = process.argv[2] || 8888;
http.createServer(function(request, response) {
var uri = url.parse(request.url).pathname
, filename = path.join(process.cwd(), uri);
@shivajivarma
shivajivarma / 0_reuse_code.js
Created January 4, 2014 08:01
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console