This is a plugin meant for Jekyll.
Example use:
Easily embed a YouTube video. Just drop this file in your _plugins
directory.
{% youtube oHg5SJYRHA0 %}
#!/usr/bin/env bash | |
# | |
# gh-dl-release! It works! | |
# | |
# This script downloads an asset from latest or specific Github release of a | |
# private repo. Feel free to extract more of the variables into command line | |
# parameters. | |
# | |
# PREREQUISITES | |
# |
import time | |
def RateLimited(maxPerSecond): | |
minInterval = 1.0 / float(maxPerSecond) | |
def decorate(func): | |
lastTimeCalled = [0.0] | |
def rateLimitedFunction(*args,**kargs): | |
elapsed = time.clock() - lastTimeCalled[0] | |
leftToWait = minInterval - elapsed | |
if leftToWait>0: |
#!/bin/bash | |
if [ "$1" = "-h" -o "$1" = "--help" -o -z "$1" ]; then cat <<EOF | |
appify v3.0.1 for Mac OS X - http://mths.be/appify | |
Creates the simplest possible Mac app from a shell script. | |
Appify takes a shell script as its first argument: | |
`basename "$0"` my-script.sh |
__author__ = 'srv' | |
import smtplib | |
from email.mime.multipart import MIMEMultipart | |
from email.mime.text import MIMEText | |
from email.mime.application import MIMEApplication | |
username = '' # Email Address from the email you want to send an email | |
password = '' # Password | |
server = smtplib.SMTP('') |
This is a plugin meant for Jekyll.
Example use:
Easily embed a YouTube video. Just drop this file in your _plugins
directory.
{% youtube oHg5SJYRHA0 %}
// additional required configuration to hook into the build script | |
android { | |
signingConfigs { | |
release | |
} | |
buildTypes { | |
release { | |
signingConfig signingConfigs.release | |
} |
<!-- using semantic ui to display flags --> | |
<div class="field"> | |
<label>Country</label> | |
<div class="ui fluid search selection dropdown"> | |
<input type="hidden" name="country" value=""> | |
<i class="dropdown icon"></i> | |
<div class="default text">Select Country</div> | |
<div class="menu"> | |
<div class="item" data-value="64"><i class="nz flag"></i>New Zealand (+64)</div> | |
<div class="item" data-value="61"><i class="au flag"></i>Australia (+61)</div> |
from flask import make_response | |
from functools import wraps, update_wrapper | |
from datetime import datetime | |
def nocache(view): | |
@wraps(view) | |
def no_cache(*args, **kwargs): | |
response = make_response(view(*args, **kwargs)) | |
response.headers['Last-Modified'] = datetime.now() | |
response.headers['Cache-Control'] = 'no-store, no-cache, must-revalidate, post-check=0, pre-check=0, max-age=0' |
#------------------------------------------------------------ | |
# ATmega1284 | |
#------------------------------------------------------------ | |
# similar to ATmega164p | |
part | |
id = "m1284"; | |
desc = "ATMEGA1284"; | |
has_jtag = yes; |