Skip to content

Instantly share code, notes, and snippets.

### Keybase proof
I hereby claim: * I am fermuch on github. * I am fermuch (https://keybase.io/fermuch) on keybase. * I have a public key ASBzv83jUyE7PwXg0KN0AGlwL99p1oBZz2h7xhB_nzHNYgo
To claim this, I am signing this object:
```json
{ "body": { "key": { "eldest_kid": "012073bfcde353213b3f05e0d0a3740069702fdf69d68059cf687bc6107f9f31cd620a", "host": "keybase.io", "kid": "012073bfcde353213b3f05e0d0a3740069702fdf69d68059cf687bc6107f9f31cd620a", "uid": "f6c373d5a8bbe7e2de56519654c5dd19", "username": "fermuch" }, "merkle_root": { "ctime": 1555362747, "hash": "cd87c21238b0c32cf8bd775a3144a0584963a387859aa6e9dd0aec4b805f791cfb3133b13135e7a64fb1303dc7ef46b57fa96877f6401556519037820377a0d9", "hash_meta": "8814e0d5356bf65061b44bbd0d95a74d31c99bec7e283bc4572f526ffe37aaa7", "seqno": 5173878 }, "service": { "entropy": "1m8CVSH13jLaYLTg4beuVrPv", "name": "github", "username": "fermuch" }, "type": "web_service_bi
@fermuch
fermuch / hexconverter.js
Created January 17, 2012 13:58
Library for Hexadecimal working with Javascript. I based this on a lib that I found in a blog, but I don't remember the blog, so I'm sorry.
var HexConverter = {
hexDigits : '0123456789ABCDEF',
dec2hex : function( dec )
{
return( this.hexDigits[ dec >> 4 ] + this.hexDigits[ dec & 15 ] );
},
hex2dec : function( hex )
{
#!/bin/sh
if [ -z "$NODE_VERSION" ]; then
N_V=$(cat .node-version)
NODE_VERSION=$(echo "$N_V" | cut -c 2-)
NPM_VERSION="4.6.1"
fi
import {getSchema} from 'graphql-loader';
import {initAccounts} from 'meteor/nicolaslopezj:apollo-accounts';
import {addGraphQLSchema, addGraphQLResolvers, addGraphQLMutation} from 'meteor/vulcan:lib';
initAccounts({
loginWithFacebook: false,
loginWithGoogle: false,
loginWithLinkedIn: false,
loginWithPassword: true
});

Keybase proof

I hereby claim:

  • I am fermuch on github.
  • I am fermuch (https://keybase.io/fermuch) on keybase.
  • I have a public key ASCwXKKH6rDbQaOInibrG4AAlsW7NCR8m52OAfF5o0kYLAo

To claim this, I am signing this object:

@fermuch
fermuch / index.html
Created September 12, 2017 13:14
Tangram test
<!doctype html>
<!--
Tangram: real-time WebGL rendering for OpenStreetMap
http://github.com/tangrams/tangram
http://mapzen.com
-->
<html lang="en-us">
<head>

Keybase proof [41/1083]

I hereby claim:

  • I am fermuch on github.
  • I am fermuch (https://keybase.io/fermuch) on keybase.
  • I have a public key ASBc6oeMAt_gkaHWVk1TTKg5-kX8LsGHZn11ia411wqQ3go

To claim this, I am signing this object:

@fermuch
fermuch / javascript.coffee
Created May 18, 2013 15:25
Gist para el evento de Google I/O Extended - CoffeeScript!
class Map
constructor: (map) ->
mapOptions =
center: new google.maps.LatLng(-29.71371, -57.08556),
zoom: 16,
mapTypeId: google.maps.MapTypeId.ROADMAP
@map = new google.maps.Map map.get(0), mapOptions
@markers = []
#!/bin/bash
GW=`/sbin/ip route list | grep default | awk '{print $3}'`
if ping -c 2 $GW | grep -o Unreachable; then
echo down;
echo `date`": reconnected to wlan" >> /var/log/wlan0-detail
ifdown wlan0
sleep 5
ifup wlan0
fi
@fermuch
fermuch / loop.rb
Created March 10, 2013 03:48
stop loop in ruby
5.times do |i|
puts i
break if i == 3
end