Skip to content

Instantly share code, notes, and snippets.

View caffeinewriter's full-sized avatar
🎮
Have you heard about blitz.gg? 👀

Brandon Anzaldi caffeinewriter

🎮
Have you heard about blitz.gg? 👀
  • Blitz
  • Greater Los Angeles Area, California
View GitHub Profile
@adamhalasz
adamhalasz / index.js
Last active August 29, 2015 14:14
Using socket.io with diet.js
// Diet Server
var server = require('diet')
var app = server()
app.listen(8000)
// Socket.io
var io = require('socket.io')(app.server) // <-- use app.server
// Listen on websocket connection
io.on('connection', function(socket){
@bpinedah
bpinedah / css_resources.md
Created April 23, 2014 04:48 — forked from jookyboi/css_resources.md
CSS libraries and guides to bring some order to the chaos.

Libraries

  • 960 Grid System - An effort to streamline web development workflow by providing commonly used dimensions, based on a width of 960 pixels. There are two variants: 12 and 16 columns, which can be used separately or in tandem.
  • Compass - Open source CSS Authoring Framework.
  • Bootstrap - Sleek, intuitive, and powerful mobile first front-end framework for faster and easier web development.
  • Font Awesome - The iconic font designed for Bootstrap.
  • Zurb Foundation - Framework for writing responsive web sites.
  • SASS - CSS extension language which allows variables, mixins and rules nesting.
  • Skeleton - Boilerplate for responsive, mobile-friendly development.

Guides

@jmgunn87
jmgunn87 / ORP.css
Last active January 24, 2020 11:48
optimal recognition point for a word
* {font-family:monospace}
.g { text-align: center; font-size:36px }
.v { text-align: center; font-size:36px }
.l { margin:0;padding:0;color: black;}
.p { margin:0;padding:0;color: red; }
.r { margin:0;padding:0;color: black; }
@0xabad1dea
0xabad1dea / rsa-not-buying-it.md
Last active May 4, 2022 21:59
Sorry, RSA, I'm just not buying it

Sorry, RSA, I'm just not buying it

I want to be extremely clear about three things. First, this is my personal opinion – insert full standard disclaimer. Second, this is not a condemnation of everyone at RSA, present and past. I assume most of them are pretty okay, and that the problem is confined to a few specific points in the company. However, “unknown problem people making major decisions at RSA” is a bit unwieldy, so I will just say RSA. Third, I'm not calling for a total boycott on RSA. I work almost literally across the street from them and I don’t want to get beat up by roving gangs of cryptographers at the local Chipotle.

RSA's denial published last night is utter codswallop that denies pretty much everything in the world except the actual allegations put forth by Reuters and hinted at for months by [other sources](http://li

@zspecza
zspecza / brainfuck.coffee
Created December 13, 2013 02:27
Brainf*ck Interpreter
###
brainfuck() function
description: takes a string of Brainfuck code and returns the parsed result
usage: brainfuck('++++++++++[>+++++++>++++++++++>+++>+<<<<-]>++.>+.+++++++..+++.>++.<<+++++++++++++++.>.+++.------.--------.>+.>.')
// output: 'Hello World.'
###
brainfuck = (code) ->
inp = '23\n'
out = ''
@gabrielhpugliese
gabrielhpugliese / meteor-windows-vagrant-tutorial.md
Last active April 19, 2022 14:37
Tutorial for running Meteor in Windows using Vagrant

Tutorial: Meteor in Windows using Vagrant

BEFORE YOU CONTINUE:

  • Now, Meteor runs in any Windows without any line of this tutorial. Just download the Meteor binary! Yay!!
  • mrt is no longer used with Meteor 1.0

These days some people were discussing at meteor-talk group about running Meteor at Windows and I’ve recommended them using Vagrant. It’s a very developer-friendly piece of software that creates a virtual machine (VM) which let you run any operating system wanted and connect to it without big efforts of configuration (just make the initial installation and you have it working).

Many packages (I've tested) for running Meteor+Vagrant fails because Meteor writes its mongodb file and also other files inside local build folder into a shared folder between the Windows host and the Linux guest, and it simply does not work. So I've put my brain to work and found a solution: do symlinks inside the VM (but do not use ln. Use mount so git can follow it). It’s covered on

@dasher
dasher / gist:4391953
Last active June 12, 2018 08:17
Litecoin Supernodes
"83.169.3.31"
"82.226.138.81"
"93.62.173.122"
"94.23.253.228"
"91.121.174.223"
"188.120.246.137"
"12.23.127.175"
"99.243.145.178"
"79.142.22.72"
"198.23.159.10"
@ndarville
ndarville / business-models.md
Last active January 13, 2024 17:27
Business models based on the compiled list at http://news.ycombinator.com/item?id=4924647. I find the link very hard to browse, so I made a simple version in Markdown instead.

Business Models

Advertising

Models Examples
Display ads Yahoo!
Search ads Google
@devrandom
devrandom / 00README.md
Last active December 27, 2022 15:49
Building bitcoin with gitian-builder

This is obsolete, since Bitcoin Core has moved to a more modern build system.

@banksean
banksean / mersenne-twister.js
Created February 10, 2010 16:24
a Mersenne Twister implementation in javascript. Makes up for Math.random() not letting you specify a seed value.
/*
I've wrapped Makoto Matsumoto and Takuji Nishimura's code in a namespace
so it's better encapsulated. Now you can have multiple random number generators
and they won't stomp all over eachother's state.
If you want to use this as a substitute for Math.random(), use the random()
method like so:
var m = new MersenneTwister();