Skip to content

Instantly share code, notes, and snippets.

View marksteve's full-sized avatar
🏠

Mark Steve Samson marksteve

🏠
View GitHub Profile

Keybase proof

I hereby claim:

  • I am marksteve on github.
  • I am marksteve (https://keybase.io/marksteve) on keybase.
  • I have a public key whose fingerprint is F213 877B 6329 EFC3 F9F6 570A 9CBC 7CFC 3E49 F3DE

To claim this, I am signing this object:

{
"-11:00": [
"Pacific/Midway",
"Pacific/Niue",
"Pacific/Pago_Pago",
"Pacific/Samoa",
"US/Samoa"
],
"-10:00": [
"America/Adak",
@marksteve
marksteve / throttle.js
Last active August 29, 2015 14:03
Decorator to limit function calls to every `cd` ms
var throttle = function(f, cd) {
var _cd = new Date;
return function() {
if (_cd - new Date < 0) {
_cd = new Date(new Date().getTime() + cd);
return f.apply(this, arguments);
}
};
};
@marksteve
marksteve / gist:b25be2c0c2cf50b3102b
Last active August 29, 2015 14:07
Dota 2 Launch Options
-novid -console +net_graph 1 +net_graphheight 64 +net_graphinsettop 0 +net_graphinsetleft 80 +net_graphpos 1 +net_graphproportionalfont 0 +net_graphtext 1
Computer Science data structures 1
Computer Science algorithms 1
Computer Science systems programming 1
Software Engineering source code version control 3
Software Engineering build automation 3
Software Engineering automated testing 3
Programming problem decomposition 3
Programming systems decomposition 3
Programming communication 2
Programming code organization within a file 2
@marksteve
marksteve / columns.less
Created November 17, 2014 15:38
LESS columns
.cols:after {
content: "";
display: table;
clear: both;
}
[class*='col-'] {
float: left;
}
say -v ? | grep en_US | awk '{print $1}' | xargs sh -c 'for voice; do say -v $voice "Hello, I am $voice"; done'

Ron, Clarke and Steve: PythonPH Jobs

  • Ronnie
  • Clarke
  • Steve

???: OpenERP Percentage Widget

  • Gelo
  • Lunie
  • Edson
@marksteve
marksteve / htpasswd.py
Last active August 29, 2015 14:18 — forked from eculver/htpasswd.py
#!/usr/bin/env python
"""Replacement for htpasswd"""
# Original author: Eli Carter
import os
import sys
import random
from optparse import OptionParser
# We need a crypt module, but Windows doesn't have one by default. Try to find