start new:
tmux
start new with session name:
tmux new -s myname
/*! SES sources included by LavaMoat. Do not optimize or minify. */ | |
; | |
// [email protected] | |
'use strict'; | |
(functors => { | |
const cell = (name, value = undefined) => { | |
const observers = []; | |
return Object.freeze({ | |
get: Object.freeze(() => { |
const websocketMachine = Machine({ | |
id: 'websocket', | |
initial: 'CONNECTING', | |
context: { | |
lastEventId: null, | |
socket: null, | |
}, | |
invoke: { | |
src: 'initializeWebSocket', | |
onDone: 'CONNECTED', |
// Available variables: | |
// - Machine | |
// - interpret | |
// - assign | |
// - send | |
// - sendParent | |
// - spawn | |
// - raise | |
// - actions |
const syncHandler = () => () => { | |
return () => {}; | |
} | |
const SyncMachine = Machine({ | |
id: 'sync', | |
initial: 'idle', | |
context: { | |
hasMoreBlocks: false, | |
}, |
/* eslint-disable */ | |
const fs = require('fs'); | |
const readline = require('readline'); | |
const { once } = require('events'); | |
const WebSocket = require('ws'); | |
const AWS = require('aws-sdk'); | |
const axios = require('axios').default; | |
const lineByLine = require('n-readlines'); | |
const Promise = require('bluebird'); |
Saw this on my favorite agency site and decided to replicate the effect: http://www.teehanlax.com/story/readability/
Forked from ace's Pen Before and after image slider.
A Pen by Captain Anonymous on CodePen.
import redis | |
import threading | |
class Listener(threading.Thread): | |
def __init__(self, r, channels): | |
threading.Thread.__init__(self) | |
self.redis = r | |
self.pubsub = self.redis.pubsub() | |
self.pubsub.subscribe(channels) | |
var crypto = require('crypto'), | |
url = require('url'), | |
URLSafeBase64 = require('urlsafe-base64'); | |
function GenerateSignature(privateKey, query) { | |
var u = url.parse(query); | |
var urlToSign = u.path; | |
var decodedKey = URLSafeBase64.decode(privateKey); | |
var signature = crypto.createHmac('sha1', decodedKey).update(urlToSign); | |
var encodedSignature = URLSafeBase64.encode(signature.digest()); |
int codifica(void* valores, char *campos) { | |
char tipo; | |
int acc = 0; | |
int i; | |
int temint = 0; | |
int ultimoChar = 0; | |
int padding = 0; | |
int pad = 0; | |
for (i=0;i<=strlen(campos);i++) { |