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
user root; | |
worker_processes 1; | |
events { | |
worker_connections 1024; | |
} | |
http { | |
default_type application/octet-stream; |
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
Lieve Danny, | |
Sinterklaas zat eens te schenken, | |
wat hij Danny nu zou bedenken. | |
Nee, dat is niet zoals het rijmpje gaat | |
mij verstand mij verlaat! | |
*Rijm Piet neemt het hier over van Sinterklaas* | |
Och wat is er nou toch gebeurt met die ouwe pieterbaas | |
Heeft zijn hoofd verloren in zijn poging jou te bekoren |
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
{ | |
"titles": [ | |
{ | |
"id": 16, | |
"title": "Test6" | |
}, | |
{ | |
"id": 15, | |
"title": "Test5" | |
}, |
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 app = angular.module('twitterApp', []); | |
app.directive("enter", function (){ | |
return function (scope, element, attrs) { | |
element.bind('mouseenter', function (){ | |
scope.$apply(attrs.enter); | |
}) | |
} | |
}); |
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 myApp = angular.module('myApp', []); | |
/* myApp.factory('Colors', function() { | |
return function() { | |
var colors = {}; | |
colors.code_lib = [ | |
{ | |
color: "red", | |
value: "#f00" |
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
buildings = [ | |
{ | |
'name': 'goldmine', | |
'level': '1', | |
'time': '3', | |
'do': function () { | |
setResource('gold', getResource('gold') + 10); | |
$.proxy(setTimeout, this, this.do, this.time); | |
} | |
} |
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
wonder_numbers = set([2]) | |
temp_wonder_numbers = set() | |
def wonder(n): | |
n = int(n) | |
if n in wonder_numbers: | |
print('n is a wonder number') | |
for i in temp_wonder_numbers: | |
wonder_numbers.add(i) | |
return |
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
#With mod_rewrite | |
RewriteEngine on | |
RewriteRule ^/docs/(.+) http://localhost:5000$1 [R,L] |
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
function isTouchDevice(){ | |
try{ | |
document.createEvent("TouchEvent"); | |
return true; | |
}catch(e){ | |
return 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
CACHE MANIFEST | |
http://site.com/thefile.jpg |