Skip to content

Instantly share code, notes, and snippets.

with ( require( "fab" ) )
( fab )
( listen, 0xFAB )
( /^\/hello/ )
( tmpl )
( "Hello, <%= this %>!" )
with ( require( "fab" ) )
( fab )
( listen, 0xFAB )
( /^\/hello/ )
( tmpl )
( "Hello, <%= this %>!" )
@brainpicture
brainpicture / test-tls-openssl-error.js
Created June 8, 2011 22:14
test for https://github.com/joyent/node/issues/1046. For example you can run it from node-v0.4.8/test/pummel
// STARTTLS Body
// test is below
function starttls(socket, sslcontext, cb, isServer) {
var pair = require('tls').createSecurePair(sslcontext, isServer);
var cleartext = pipe(pair, socket);
pair.on('secure', function() {
var verifyError = pair.ssl.verifyError();
http://maps.googleapis.com/maps/api/staticmap?center=37.7749300752,-122.41941269&zoom=11&size=120x70&sensor=false&language=ru&markers=size:tiny|color:0x333333|37.7749300752,-122.41941269
@brainpicture
brainpicture / gist:1524957
Created December 27, 2011 19:52
Old Salut
javascript: stManager.add(['../lib/salut.js'])
" BookmarkPut
vnoremap <silent> m y:call BookmarkPut()<CR>
function! BookmarkPut()
echo "bookmark: "
let c = getchar()
if !type(c)
let c = nr2char(c)
endif
if (match(c, '[a-zA-Z0-9]\C') != -1)
exec "normal! `".c."P"
<h2>Snapster for Android</h2>
<div class="chronicle_pages_name">Snapster for Android is built using open source software:</div>
<div class="chronicle_pages_description">
<ul>
<li>Android Support Library</li>
<li>Advanced RecyclerView</li>
<li>Picasso</li>
<li>OkHttp</li>
</ul>
<p>Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License.</p>
let elsDom, els, y = 20
let lst = (tagName) => {
let elsDom = document.getElementsByTagName("span"), res = []
for(var i in elsDom) if (elsDom[i].innerHTML == tagName) res.push(elsDom[i])
return res
}, next = () => {
setTimeout(() => {
y += 60
window.scrollTo(0, y)
els = lst("Following")