Skip to content

Instantly share code, notes, and snippets.

View madelinecr's full-sized avatar
:octocat:
Octocatting

Finn madelinecr

:octocat:
Octocatting
View GitHub Profile
cslug@poppycock:~$ mysql -u root -p
Enter password:
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 37
Server version: 5.1.49-3 (Debian)
Copyright (c) 2000, 2010, Oracle and/or its affiliates. All rights reserved.
This software comes with ABSOLUTELY NO WARRANTY. This is free software,
and you are welcome to modify and redistribute it under the GPL v2 license
@madelinecr
madelinecr / gist:893997
Created March 30, 2011 07:19
poole.py
#!/usr/bin/python
# =============================================================================
#
# Poole - A damn simple static website generator.
# Copyright (C) 2009 Oben Sonne <[email protected]>
#
# This file is part of Poole.
#
# Poole is free software: you can redistribute it and/or modify
def fib(x)
a,b = 0,1
x.times do
b,a=a,b+a
puts b
end
end
I plan on using my free student micro plan for various student projects. I'm currently a Junior of Computer Science attending California State University, Chico. My current school project involves AI algorithm research and studying using Panda3D to visualize different locomotive behavior patterns.
#include <sstream>
#include <string>
stringstream ss;
string tobeconverted;
int converted;
ss << tobeconverted;
ss >> converted;
@madelinecr
madelinecr / gist:989267
Created May 24, 2011 18:03
Gitignore File
config/database.yml
config/*.sphinx.conf
config/s3_credentials.yml
*~
*.cache
*.log
*.pid
tmp/**/*
.DS_Store
db/cstore/**
class Settings
@conf_file = "My_Settings_String"
class << self
attr_accessor :conf_file
end
end
def man(V,B,c): #Z, C, iter
if abs(V)>=6: #Escape bound. 6 instead of 4 to give smoother fade
return (2+c-4*abs(V)**-0.4)/255 #(0..1]
elif c:
return man(V*V+B,B, c-1) #Reiterate Z=Z*Z+C
else:
return 0 #In set
v=1500 #width
x=1000 #height
from struct import pack
@madelinecr
madelinecr / mpd.conf
Created December 2, 2011 06:07 — forked from anonymous/mpd.conf
# An example configuration file for MPD
# See the mpd.conf man page for a more detailed description of each parameter.
# Files and directories #######################################################
#
# This setting controls the top directory which MPD will search to discover the
# available audio files and add them to the daemon's online database. This
# setting defaults to the XDG directory, otherwise the music directory will be
# be disabled and audio files will only be accepted over ipc socket (using
Feature: Manage Blog Posts
In order to make a blog
I want to create and manage articles
Scenario: Posts List
Given I have posts titled Foo, Bar
When I visit posts
Then I should see Foo, Bar
Scenario: Create a Post