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
for i in `cat ~/Documents/icons8.txt`; do find . -name "$i" -exec mv {} ~/Projects/icons8/ \;; done |
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
vx: | |
virtualenv vx | |
requirements: vx | |
vx/bin/pip install -r requirements.txt | |
test_modules = main users | |
test: | |
vx/bin/python manage.py test $(test_modules) -v2 --failfast |
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
/* Original code */ | |
var s = 'foo.bar', im = new Image | |
im.src = s; s = im.src | |
console.log(s) | |
/* TypeScript output */ | |
var s = 'foo.bar'; | |
var im = new Image(); |
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(['events'], function(events) { | |
module('events.js') | |
test('Basic methods', function() { | |
// `register` and `bind` | |
var str = 'Life is beautiful' | |
events.register('str_replace') | |
events.bind('str_replace', function() { str = str.replace('Life', 'Flower') }) |
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
/* | |
requestAnimationFrame polyfill, by Mark Vasilkov | |
http://careers.stackoverflow.com/mvasilkov | |
Released into the public domain. | |
*/ | |
if (typeof requestAnimationFrame === "undefined") { | |
["moz", "webkit", "ms"].some(function(p) { | |
var fun = this[p + "RequestAnimationFrame"] | |
if (typeof fun === "function") { | |
return requestAnimationFrame = fun |
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 everythingIsRuinedForever(error) { | |
console.log(error) | |
} | |
- function(filename) { | |
var quota = 1 << 24 | |
webkitStorageInfo.requestQuota(PERSISTENT, quota, function(bytes) { | |
webkitRequestFileSystem(PERSISTENT, bytes, function(fs) { | |
console.log(fs.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 obj = function() {} | |
obj.prototype.f = function(name) { if (this[name] === void 0) this[name] = new obj; return this[name] } | |
obj.prototype.get = function(name) { return this[name] } | |
obj.prototype.set = function(name, value) { this[name] = value } | |
// Usage: | |
var x = new obj | |
x.f("file").f("document").f("properties").set("т прнс?", true) |
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
group = core | |
admin-port = | |
admin-password = | |
log-file = "/var/log/kannel/bearerbox.log" | |
log-level = 3 | |
status-password = | |
access-log = "/var/log/kannel/access_kannel.log" | |
store-location = "/var/log/kannel/store_sms" | |
smsbox-port = | |
# dlr-storage = mysql |
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
{ | |
"jam": { | |
"packageDir": "media/lib", | |
"baseUrl": "media", | |
"dependencies": { | |
"jquery": null, | |
"raphael": null | |
} | |
} | |
} |
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
#include <stdio.h> | |
#include <stdlib.h> | |
int main(int argc, char const *argv[]) | |
{ | |
int **array2d, n, i, j; | |
puts("Enter a number:"); | |
scanf("%d", &n); | |
puts("Thank you, kind sir."); |