Building on this - experimenting with fake 3d svg arcs using two nested orthographic projections and cardinal line interpolation.
This file contains hidden or 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
Edit mc’s ini file (either ~/.mc/ini or ~/.config/mc/ini) and look for the line [Colors]. Then, change the line base_color to this: | |
[Colors] | |
base_color=linux:normal=white,black:marked=yellow,black:input=,green:menu=black:menusel=white:menuhot=red,:menuhotsel=black,red:dfocus=white,black:dhotnormal=white,black:dhotfocus=white,black:executable=,black:directory=white,black:link=white,black:device=white,black:special=white,black:core=,black:stalelink=red,black:editnormal=white,black |
- Grunt - The JavaScript Task Runner
- Bower - A package manager for the web
- Component - Component package manager for building a better web.
- AngularJS - MVC Javascript framework
- Sencha, Dojo...
Kinohled.cz za 2 týdny Vojtěch Semecký
This file contains hidden or 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 ajax (url, callback) { | |
callback = callback || function () {}; | |
var xhr = new XMLHttpRequest(); | |
xhr.onreadystatechange = function () { | |
if (xhr.readyState == 4) { | |
callback(xhr.responseText); | |
} | |
}; | |
xhr.open("GET", url, true); | |
xhr.send(); |
This file contains hidden or 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
/* | |
Has two optional options parameters: | |
- length - 8 characters by default | |
- characters - upper- and lowercase characters and numbers by default | |
*/ | |
function getRandomString(options, callback) { | |
options = options || {}; | |
options.length = options.length || 8; | |
options.characters = options.characters || '0123456789ABCDEFGHIJKLMNOPQRSTUVWXTZabcdefghiklmnopqrstuvwxyz'; |
This file contains hidden or 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
#!/bin/bash | |
## Nodejs custom version installer | |
## | |
## Ronaldo Barbachano April 2013 | |
## Based on the openshift/nodejscustom-version-openshift repo | |
## | |
## Supply with path to existing openshift repo, or move script into | |
## repo root. | |
## | |
## Probably less headaches if this is run immediately after |
This file contains hidden or 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 server = http.createServer(function (req, res) { | |
res.statusCode = 200; | |
res.end('<script src="/socket.io/socket.io.js"></script>'); | |
}); | |
var io = require('socket.io').listen(server); | |
io.sockets.on('connection', function (socket) { |
This file contains hidden or 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 counting words in a string | |
var words="Hi there and hello there. Welcome and hello there."; | |
var wordcnt = words.replace(/[^\w\s]/g, "").split(/\s+/).reduce(function(map, word){ | |
map[word] = (map[word]||0)+1; | |
return map; | |
}, Object.create(null)); |
This file contains hidden or 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 | |
/** | |
* Kerio Control - Sample Application. | |
* | |
* STATUS: In progress, might change in the future | |
* | |
* This api is currently under development. | |
* The api is not intended for stable use yet. | |
* Functionality might not be fully verified, documented, or even supported. | |
* |