Skip to content

Instantly share code, notes, and snippets.

View gregimba's full-sized avatar

Grant Regimbal gregimba

View GitHub Profile
@gregimba
gregimba / index.html
Created November 17, 2012 22:36
IE conditional stament
<!doctype html>
</html>
<head>
<!--[if IE 6]>
<p>Welcome to Internet Explorer 6!</p>
<![endif]-->
<head>
</html>
<ul class="people_list">
{{#each people}}
<li>{{this}}</li>
{{/each}}
</ul>
App = Ember.Application.create({});
App.IndexRoute = Ember.Route.extend({
setupController: function(controller) {
controller.set('content', ['a', 'b', 'c']);
}
});
App = Ember.Application.create({});
App.Router.map(function() {
this.route("about", { path: "/about" });
this.route("favorites", { path: "/favs" });
});
______ _ _
| ____| | | (_)
| |__ _ __ ___ | |__ ___ _ ___ _ ___
| __| | '_ ` _ \| '_ \ / _ \ '__/| |/ __|
| |____| | | | | | |_) | __/ | _ | |\__ \
|______|_| |_| |_|_.__/ \___|_|(_)| ||___/
_/ |
|__/
@gregimba
gregimba / Tweet.py
Last active December 14, 2015 22:29
from twitter import *
from Tkinter import *
OAUTH_TOKEN = ""
OAUTH_SECRET = ""
CONSUMER_KEY = ""
CONSUMER_SECRET = ""
twitter = Twitter(
auth=OAuth(OAUTH_TOKEN, OAUTH_SECRET,
@gregimba
gregimba / kipptmark.py
Created June 7, 2013 22:39
kipptmark.py takes a list of urls and imports them into https://kippt.com/ one url per line!
from json import dumps, loads
from kippt.kippt import Kippt
user = Kippt('my_username', password='my_password') # or.. user = Kippt('my_username', api_token='my_crazy_long_api_token')
#Take Urls and create a list
urls = open('url.txt', 'r')
urls = urls.read()
urlslist = urls.split('\n')
@gregimba
gregimba / logs.txt
Last active December 18, 2015 16:29
Simple cinch transcription.
gregimba => what up?
gregimba => this is great
gregimba => I can't wait to use this
<form action="tweet.php" method="post">
<p>Your tweet: <input type="text" name="tweet" /></p>
<p>Your @(handle): <input type="text" name="handle" /></p>
<p><input type="submit" /></p>
</form>
@gregimba
gregimba / show.py
Created June 29, 2013 16:56
In order to properly use pony with flask you need to add a second decorator to your function.
@index.route('/')
@with_transaction
def Show():
db = Database('sqlite', '/Users/grant/Documents/Archer/db.sqlite')