This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<%= form_tag :controller => :main, :action => :pick %> | |
<%= hidden_field_tag 'var', @var %> | |
<%= button_to "again!", main_pick_path,{:method => :post} %> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from numpy import array | |
class Flying_Circus: | |
def __init__(self): | |
self.unit_vector = array([1, 0, 0]) | |
self.rate = 100 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from unicurses import * | |
stdscr = initscr() | |
refresh() | |
user_input = getch() | |
if user_input == KEY_F: | |
print("Huzzah!") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.left_column { | |
float: left; | |
border: 1px solid red; | |
width: 500px; | |
} | |
.list_item { | |
float: left; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Game < ActiveRecord::Base | |
before_create :init | |
attr_accessible :length, :text | |
def init | |
self.text = "" | |
self.length = Random.rand(99) + 1 | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
~/apps/eirenerx_messaging master $ bundle | |
There was a LoadError while evaluating warm_gum.gemspec: | |
cannot load such file -- sinatra/base from | |
/Users/thing5/apps/warm_gum/warm_gum.gemspec:3:in `<main>' | |
Does it try to require a relative path? That doesn't work in Ruby 1.9. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Component(object): | |
""" | |
""" | |
def __init__(self): | |
""" | |
""" | |
self.components = [] | |
self.behaviors = [] | |
pass |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import XMonad | |
import XMonad.Config.Desktop | |
import XMonad.Util.EZConfig | |
import XMonad.Actions.GridSelect | |
main = xmonad desktopConfig { terminal = "konsole" } | |
`additionalKeys` | |
[((ModMask, xK_g ), goToSelected DefaultGSConfig) | |
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
class App { | |
public: | |
App(float *vertices[]); | |
~App(); | |
static float data[9] = {0.0, 1.0, 0.0, | |
-1.0, -1.0, 0.0, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
class App { | |
public: | |
App(); | |
~App(); | |
int myGflwInit(void); |
OlderNewer