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
defutf8 on # default encoding | |
defflow on # mode of control window stream | |
deflogin on # enable login mode | |
vbell off # disable visual bell | |
defmonitor on # enable activity monitor | |
activity "Activity on %n" # activity message | |
defscrollback 10000 # count of saved rows | |
crlf off # use symbols CR — LF for differentiation between rows (for copy) | |
startup_message off # disable startup message |
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
(defconstant +main-set-length+ 1000) | |
(defconstant +subset-length+ 129) | |
(defconstant +subsets-quantity+ 1000) | |
(defun create-first-set () | |
(let ((*set* (make-array +main-set-length+ :fill-pointer 0))) | |
(dotimes (i +main-set-length+) | |
(vector-push (random 1000) *set*)) | |
(return-from create-first-set *set*))) |
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
(defconstant +L+ 8) | |
(defconstant +p+ (random 1.0)) | |
(setf *random-state* (make-random-state t)) | |
(defun cluster-contains-the-point-predicate (point grid-size) | |
(let ((*surrounding-points* (list (- point grid-size) | |
(if (= (mod point grid-size) 0) | |
-1 | |
(1- point))))) |
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
[ | |
100000, | |
200000, | |
300000 | |
] | |
// vs | |
[100000, | |
200000, |
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
// class | |
function Foo() {}; | |
Foo.prototype.foo = function () {}; | |
// mixin | |
var Bar = { | |
__init: function () {}, | |
bar: function () {} | |
}; |
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 get_todo_status { | |
TODO_COUNT= | |
local FILE_LINE_COUNT=0 | |
[[ -f "$HOME/.todo" ]] && FILE_LINE_COUNT=$(cat "$HOME/.todo" | wc -l) | |
[[ $FILE_LINE_COUNT -ne "0" ]] && TODO_COUNT=$FILE_LINE_COUNT | |
} | |
function todos { | |
[[ -f "$HOME/.todo" ]] && cat -n "$HOME/.todo" | |
} |
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
Process: ControlPlane [501] | |
Path: /Applications/ControlPlane.app/Contents/MacOS/ControlPlane | |
Identifier: com.dustinrue.ControlPlane | |
Version: 1.3.14 (47) | |
Code Type: X86-64 (Native) | |
Parent Process: launchd [340] | |
Date/Time: 2013-05-06 23:53:46.840 +0400 | |
OS Version: Mac OS X 10.7.5 (11G63) | |
Report Version: 9 |
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 inherit(base, props, statics) { | |
if (typeof base !== 'function') { | |
statics = props; | |
props = base; | |
base = Object; | |
} | |
props.constructor.prototype = Object.create(base.prototype); | |
Object.keys(props).forEach(function (prop) { |
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 b = require('./b'); | |
console.log(b.hello('world')); |
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 () { | |
function factory(dep1, dep2) { | |
/* simple modile */ | |
return function () { return dep1 + dep2; }; | |
} | |
if (typeof define === 'function' && define.amd) { | |
define('simple', ['dep1', 'dep2'], factory); | |
} else if (typeof module !== 'undefined' && module.exports) { | |
module.exports = factory(requrie('dep1'), require('dep2')); |
OlderNewer