Organize resources into sections
- GitHub Buttons
- FormBakery: create forms by drag and drop
- Twitter Bootstrap
- Bootstrap Buttons
- Bootstrap Generator
- Kickstrap
- Yahoo! (UI) Design Pattern Library
server { | |
server_name search.yahoo.com; | |
# only handle requests from Safari search bar | |
if ($args ~ fr=aaplw.*p=) { | |
rewrite ^/search https://duckduckgo.com/?q=$arg_p? break; | |
} | |
# attempt to redirect other requests back to Yahoo, using alternative server name | |
rewrite ^ http://search.ystg1.b.yahoo.com$request_uri? break; |
import collections | |
import MySQLdb as dbapi | |
__all__ = ['MySql'] | |
class MySql(object): | |
def __init__(self, **kwargs): | |
self.connection = dbapi.connect(**kwargs) | |
self.host_name = kwargs.get('host') |
Organize resources into sections
function(container, pins) { | |
pins.imagesLoaded(function(images){ | |
container.masonry('appended', pins, false); | |
// IE fix preventing not loading images | |
jQuery.each(images, function(i, e, c) { | |
var tmp_src = jQuery(e).attr("src"); | |
if (!e.complete) { | |
jQuery(e).attr("src", ""); | |
jQuery(e).attr("src", tmp_src); |
# This example does an AJAX lookup and is in CoffeeScript
$('.typeahead').typeahead(
# source can be a function
source: (typeahead, query) ->
# this function receives the typeahead object and the query string
<script> | |
// Charles Lawrence - Feb 16, 2012. Free to use and modify. Please attribute back to @geuis if you find this useful | |
// Twitter Bootstrap Typeahead doesn't support remote data querying. This is an expected feature in the future. In the meantime, others have submitted patches to the core bootstrap component that allow it. | |
// The following will allow remote autocompletes *without* modifying any officially released core code. | |
// If others find ways to improve this, please share. | |
var autocomplete = $('#searchinput').typeahead() | |
.on('keyup', function(ev){ | |
ev.stopPropagation(); |
<!doctype html> | |
<html> | |
<head> | |
<meta charset="utf-8" /> | |
<link href="http://twitter.github.com/bootstrap/assets/css/bootstrap.css" rel="stylesheet" /> | |
<title>Bootstrap modal confirm</title> | |
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js"></script> |
{% extends "yourbase.html" %} | |
{% block subheader %} | |
<div class="page-header"> | |
<h1> | |
<span id="log-date">{{ title }}</span> | |
<a data-tooltip="Change the date" id="log-date-button" href="javascript:void(0);" style="margin-left: 10px;"><img src="img/calendar.png"></a> | |
</h1> | |
</div> | |
{% endblock %} |
#!/usr/bin/env python | |
#encoding=utf-8 | |
""" | |
Seth Brown | |
Python 3.2 | |
Blog post link: http://j.mp/H5Zrdn | |
""" | |
import os, sys, csv | |
from glob import iglob | |
from subprocess import Popen, PIPE |
<!doctype html> | |
<html> | |
<head> | |
<meta name="viewport" content="initial-scale=1.0, user-scalable=no, width=device-width" /> | |
<meta name="apple-mobile-web-app-capable" content="yes" /> | |
<title>everyday.io</title> | |
{% if g and g.debug %} | |
<link rel="stylesheet" href="css/colorslider.css" /> | |
<link rel="stylesheet" href="css/dateinput.css" /> | |
<link rel="stylesheet" href="css/bootstrap-1.3.0.min.css"> |