Skip to content

Instantly share code, notes, and snippets.

View vic's full-sized avatar
🤮
puke nuke

Victor Borja vic

🤮
puke nuke
View GitHub Profile
@staltz
staltz / about-mercury.md
Last active August 29, 2015 14:14
El Mercurio

Rough sketch of how is the flow of data in Mercury.

                           │
  Event channels  <───────────── dom-delegator (events)
       │                   │           ^
       V  (imperative)                 │
  View state               │          DOM
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, minimum-scale=1, user-scalable=no, minimal-ui">
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-status-bar-style" content="black">
<link rel="stylesheet" href="http://www.idangero.us/framework7/dist/css/framework7.css">
<link rel="stylesheet" href="http://www.idangero.us/framework7/dist/css/framework7.themes.css">
</head>
<body>
@vic
vic / InputAutoCfg.ini
Created August 1, 2015 00:45
Wii U Pro for mupen84 using wjoy
[Wiimote (8c-cd-e8-bf-99-de)]
plugged = True
plugin = 2
mouse = False
AnalogDeadzone = 2000,2000
AnalogPeak = 17000,17000
DPad R = button(15)
DPad L = button(13)
anonymous
anonymous / index.html
Created August 11, 2015 18:56
JS Bin // source http://jsbin.com/kehoxi
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>JS Bin</title>
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.0.0-alpha1/jquery.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/d3/3.5.6/d3.js"></script>
<script src="http://dimplejs.org/dist/dimple.v2.1.6.min.js"></script>
require 'java'
begin
require 'jar/netty-3.2.2.Final'
rescue LoadError
require 'fileutils'
FileUtils.mkdir_p 'jar'
system "wget -O jar/netty-3.2.2.Final.jar http://repository.jboss.org/nexus/content/groups/public-jboss/org/jboss/netty/netty/3.2.2.Final/netty-3.2.2.Final.jar"
require 'jar/netty-3.2.2.Final'
end
@xaviershay
xaviershay / gist:787378
Created January 20, 2011 04:12
Bad idea of the week: ARel + DataMapper
# Because I can't figure out how the fuck to get SQL out of datamapper itself
class PGEngine < Arel::Visitors::PostgreSQL
attr_accessor :engine
def initialize(engine)
super
self.engine = engine
end
def connection_pool
@igstan
igstan / hack.sh
Created August 22, 2012 20:08 — forked from DAddYE/hack.sh
OSX For Hackers
#!/bin/sh
##
# This is a script with usefull tips taken from:
# https://github.com/mathiasbynens/dotfiles/blob/master/.osx
#
# Run in interactive mode with:
# $ sh -c "$(curl -sL https://raw.github.com/gist/2108403/hack.sh)"
#
# or run it without prompt questions:
@txus
txus / Readme.md
Created August 26, 2012 20:25
Revolver - evolving ruby code.

Revolver

Evolving Ruby code

You write the tests, Revolver writes the code.

Inspired by conversations with @agnoster and a programming language written by TJ Holowaychuk (can't remember the repo!!)

Needs Rubinius!

Usage

;; AceJump integration is now included in evil, this gist is only preserved for historical reasons.
;; Please use the provided integration (it's far more advanced)
;; AceJump is a nice addition to evil's standard motions.
;; The following definitions are necessary to define evil motions for ace-jump-mode (version 2).
;; ace-jump is actually a series of commands which makes handling by evil
;; difficult (and with some other things as well), using this macro we let it
;; appear as one.
require 'fiddle'
module Python
def __class__= k
value = _wrap self
[k.object_id<<1].pack('Q').unpack('C8').each_with_index {|n,i|value[i+8]=n}
end
def _wrap klass; Fiddle::Pointer.new Fiddle.dlwrap klass; end
end