| gitflow | git |
|---|---|
git flow init |
git init |
git commit --allow-empty -m "Initial commit" |
|
git checkout -b develop master |
This file contains hidden or 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
| // Instructions. Save as a bookmark. Click when on a repo or github.io (gh-pages branch) site. | |
| javascript:(function(h,p){ | |
| location = /io$/.test(h) ? | |
| 'https://github.com/' + h.split('.')[0] + p: | |
| 'http://'+ p.split('/')[1]+'.github.io'+ '/' + p.split('/').slice(2).join('/') | |
| })(location.host,location.pathname); |
This file contains hidden or 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 datetime import datetime | |
| from zlib import compress | |
| def serialize(x): | |
| if isinstance(x, dict): | |
| return '<<' + '\n'.join(serialize(k) + ' ' + serialize(v) for k, v in x.items()) + '>>' | |
| if isinstance(x, list): | |
| return '[' + ' '.join(serialize(it) for it in x) + ']' | |
| return str(x) |
This file contains hidden or 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
| #!/usr/bin/env python | |
| # Quick and dirty demonstration of CVE-2014-0160 by | |
| # Jared Stafford ([email protected]) | |
| # Modified so that it finds cookies | |
| import sys | |
| import struct | |
| import socket | |
| import time | |
| import select |
This file contains hidden or 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
| function flow (generator) { | |
| var iterator = generator(next); | |
| next(); | |
| function next (err, result) { | |
| if (err) iterator.throw(err); | |
| var item = iterator.next(result); | |
| if (item.done) return; | |
| if (typeof item.value === 'function') item.value(next); | |
| } | |
| } |
Yet another framework syndrome
| Name | Date | URL | Stars |
|---|---|---|---|
| Jake | April 2010 | https://github.com/mde/jake | 1000 |
| Brunch | January 2011 | http://brunch.io/ | 3882 |
This file contains hidden or 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 accept-charset="UTF-8" action="/payment" class="cardInfo" method="post"> | |
| <fieldset class="cardInfo__cardDetails"> | |
| <div class="form-row cardInfo__cc-num"> | |
| <label for="cc-num"><abbr title="required">*</abbr><span>Card Number</span></label> | |
| <div class="cc-num__wrap"> | |
| <!-- using type="tel" because type="number" doesn’t pass HTML5 form validation with jQuery.payment formatting --> | |
| <input id="cc-num" type="tel" class="paymentInput cc-num" placeholder="•••• •••• •••• ••••" autocompletetype="cc-number" required="required"> | |
| <span class="card" aria-hidden="true"></span> |
This file contains hidden or 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 flask import Flask | |
| from flask.ext.sqlalchemy import SQLAlchemy | |
| from flask.ext.wtf import Form | |
| from flask.ext.babel import gettext | |
| from wtforms import SelectField, TelField, TextField, FormField, Fieldlist, SubmitField | |
| from wtforms.validators import Optional, Required | |
| app = Flask(__name__) | |
| db = SQLAlchemy(app) |