Skip to content

Instantly share code, notes, and snippets.

@colezlaw
colezlaw / start_stop_memcached_script.sh
Last active November 6, 2020 17:54 — forked from tinogomes/start_stop_memcached_script.sh
Script sample to start/stop for linux with nohup
#!/bin/bash
#
BASE=/tmp
PID=$BASE/app.pid
LOG=$BASE/app.log
ERROR=$BASE/app-error.log
PORT=11211
LISTEN_IP='0.0.0.0'
MEM_SIZE=4
@colezlaw
colezlaw / cards.js
Last active December 17, 2015 08:18 — forked from anonymous/cards.js
var cltnc = (function() {
return {
CardDeck: function(ary) {
if ("string" == typeof(ary)) {
this.ary = ary.split("");
} else {
this.ary = ary;
}
this.remaining = ary.length;