Skip to content

Instantly share code, notes, and snippets.

View beriberikix's full-sized avatar
🐶
I have no idea what I'm doing

Jonathan Beri beriberikix

🐶
I have no idea what I'm doing
View GitHub Profile
@beriberikix
beriberikix / app.yaml
Created October 8, 2011 14:46
G+ app engine redirect
application: jonathanberi-com
version: 2
runtime: python
api_version: 1
handlers:
- url: /\+
script: plus.py
- url: /
@beriberikix
beriberikix / gist:1914871
Created February 26, 2012 08:00
ChromeOS desktop specs
Processor: AMD Athlon(tm) Dual Core Processor 4850e
PCI Devices
Host bridge: Advanced Micro Devices [AMD] RS780 Host Bridge
PCI bridge: Elitegroup Computer Systems Device 9602 (prog-if 00 [Normal decode])
PCI bridge: Advanced Micro Devices [AMD] RS780 PCI to PCI bridge (PCIE port 3) (prog-if 00 [Normal decode])
SATA controller ATI Technologies Inc SB7x0/SB8x0/SB9x0 SATA Controller [IDE mode] (prog-if 01 [AHCI 1.0])
USB Controller ATI Technologies Inc SB7x0/SB8x0/SB9x0 USB OHCI0 Controller (prog-if 10 [OHCI])
USB Controller ATI Technologies Inc SB7x0 USB OHCI1 Controller (prog-if 10 [OHCI])
USB Controller ATI Technologies Inc SB7x0/SB8x0/SB9x0 USB EHCI Controller (prog-if 20 [EHCI])
@beriberikix
beriberikix / backbone-links.md
Created March 4, 2012 03:45
AWSUM Web Development Linkz
@beriberikix
beriberikix / handlebarsjs.html
Created May 14, 2012 05:04
Handlebars noob
<html>
<head>
<title>Trying Handlebar</title>
<script src="http://cdnjs.cloudflare.com/ajax/libs/handlebars.js/1.0.0.beta6/handlebars.min.js"></script>
</head>
<body>
<div class="output"></div>
<script id="template" type="text/x-handlebars-template">
<span>{{name}}</span>
@beriberikix
beriberikix / hangouts-locale.js
Last active October 4, 2015 20:37
Hangouts locale lookup function
/***********************************************************************
Copyright 2013 Google Inc. All Rights Reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
@beriberikix
beriberikix / app.xml
Created June 15, 2012 03:13
Serving Hangouts from Gists
<?xml version="1.0" encoding="UTF-8" ?>
<Module>
<ModulePrefs title="Hangout Starter">
<Require feature="rpc" />
<Require feature="views" />
</ModulePrefs>
<Content type="html"><![CDATA[
<script src="//talkgadget.google.com/hangouts/_/api/hangout.js?v=1.1"></script>
<style>
.guess {
@beriberikix
beriberikix / app.xml
Created June 19, 2012 15:45
Guess the Pastry
<?xml version="1.0" encoding="UTF-8" ?>
<Module>
<ModulePrefs title="Hangout Starter">
<Require feature="rpc" />
<Require feature="views" />
</ModulePrefs>
<Content type="html"><![CDATA[
<script src="//talkgadget.google.com/hangouts/_/api/hangout.js?v=1.1"></script>
<style>
.guess {
@beriberikix
beriberikix / gist:3058263
Created July 6, 2012 05:27
css jison file error
// used https://github.com/MarkBennett/css-smasher/blob/master/lib/parser.jison
//latest node stable and all packages
jison parser.jison -o cssParser.js -m js
// in the browser
<script src="cssParser.js"></script>
<script>
cssParser.parse("body { color: red; }");
</script>
@beriberikix
beriberikix / gist:3494858
Created August 28, 2012 04:03
Errors uploading firmata 2.2
In file included from StandardFirmata.cpp:19:
/Applications/Arduino.app/Contents/Resources/Java/libraries/Firmata/Firmata.h:80: error: typedef 'callbackFunction' is initialized (use __typeof__ instead)
/Applications/Arduino.app/Contents/Resources/Java/libraries/Firmata/Firmata.h:80: error: 'byte' was not declared in this scope
/Applications/Arduino.app/Contents/Resources/Java/libraries/Firmata/Firmata.h:80: error: expected primary-expression before 'int'
/Applications/Arduino.app/Contents/Resources/Java/libraries/Firmata/Firmata.h:83: error: typedef 'sysexCallbackFunction' is initialized (use __typeof__ instead)
/Applications/Arduino.app/Contents/Resources/Java/libraries/Firmata/Firmata.h:83: error: 'byte' was not declared in this scope
/Applications/Arduino.app/Contents/Resources/Java/libraries/Firmata/Firmata.h:83: error: 'byte' was not declared in this scope
/Applications/Arduino.app/Contents/Resources/Java/libraries/Firmata/Firmata.h:83: error: 'byte' was not declared in this scope
/Applications/Arduino.a
@beriberikix
beriberikix / plus-plusone.html
Last active December 18, 2015 10:10 — forked from sjmiles/gist:5763113
Polymer/web components with async loading.
<element name="plus-plusone">
<script>
Polymer.register(this, {
ready: function() {
addInstance(this);
},
plusOneReady: function() {
// do stuff
console.log('plusone.js is ready');
}