Skip to content

Instantly share code, notes, and snippets.

#
# The Churros
# by @staydecent
#
# combo of some fine open-source species,
# with some of the custom Dormant Penguin love
#
speed_change_fear = 60.0
my_start_pos = null
@staydecent
staydecent / Gum_Composer.md
Created April 28, 2013 20:08
Using Gum with Composer.

Using Gum with Composer

Create a new dir for your project

$ mkdir mynewapp

Install Composer

$ cd mynewapp $ curl -sS https://getcomposer.org/installer | php

@staydecent
staydecent / gist:5606202
Last active March 1, 2016 07:59
Installing Arch linux on Thinkpad T410

Installing Arch on Thinkpad t410

Supplies:

  • Thinkpad
  • Other computer (Air in my case)
  • USB Stick
  • Internet connection

Prep

@staydecent
staydecent / .tmux-work
Last active December 20, 2015 04:59
dotfiles
rename-session -t 0 work
selectp -t 0 # select the first (0) pane
splitw -v -p 66 -c ~/Development/ecquirex 'grunt watch:linux' # split it into 1/3
selectp -t 1 # select the new, second (1) pane
splitw -v -p 50 -c ~/Development/ecquirex # split it into two halves
selectp -t 0 # go back to the first pane
run-shell "$SHELL cd ~/Development/ecquirex"
@staydecent
staydecent / autostart.py
Created September 10, 2013 18:51
Config for Qtile
# -*- coding: utf-8 -*-
from libqtile.manager import Key, Screen, Group
from libqtile.command import lazy
from libqtile import layout, bar, widget, hook
#
# Global optiosn
#
@staydecent
staydecent / geeksphone_flash_howto.md
Last active March 23, 2016 14:34
How to flash Geeksphone's with Firefox or Android ROMs/Images

How to flash your GeeksPhone Keon or Peak.

  1. Make sure that you have at least 50% of battery remaining. This is important, because if your phone switches off while updating, maybe you will need to send it to RMA.
  2. With the phone not connected by USB, go to Settings, Device Information, More Information, Developer and check Remote Debugging flag on.
  3. Use a USB cable to connect it to your computer.
  4. Download the needed image. http://downloads.geeksphone.com/
  5. Unzip the image in a folder.
  6. Download compiled adb and fastboot for mac if needed: https://dl.dropboxusercontent.com/u/1644097/adbfastbootmac.zip
  7. Execute the following commands:
@staydecent
staydecent / stapes_react.js
Created February 12, 2014 19:45
Re-render React component on stapes module change event
var Module = Stapes.subclass();
var mod = new Module();
function initRender() {
// MyApp would be some Reacy component you've defined
React.renderComponent(<MyApp mod={mod} />, node);
}
// ready is a custom event to trigger initRender
// from the Module contructor
@staydecent
staydecent / styles.less
Last active June 4, 2021 04:44
Smaller, more compact tab-bar for Atom.io
.tab-bar {
height: 34px;
padding: 0;
.tab {
-webkit-transform: none;
top: 2px;
line-height: 25px;
&.active {
@staydecent
staydecent / background.js
Last active August 29, 2015 14:00
Command Tabs Opera Extension
// on proper key press
chrome.runtime.onMessage.addListener(function(request, sender) {
if (!request.tabIndex) { return; }
var tabIndex = request.tabIndex;
chrome.tabs.query({currentWindow: true, index: tabIndex}, function(tab) {
if (!tab.length) { return; }
chrome.tabs.update(tab[0].id, {active: true});
@staydecent
staydecent / dispatcher.js
Created August 19, 2014 03:37
Dispatcher / Synchronous Events
/**
* Dispatcher
*
* Requires: <script src="http://d3js.org/queue.v1.min.js"></script>
*/
var Dispatcher = function() {
this._q = queue(1);
this._events = {};
this._E = function(message) {
this.message = message;