To run the API, following settings need to be exported as env variables
- VAPID email
- VAPID private key path
- VAPID public key path
#!/bin/bash -e | |
gpio mode 8 up # Input with internal pull-up resistor | |
#echo "Compiling..." | |
#make -C ~/ImageAnalysisWithMicrocomputer30330/ZomBuster/src 1> /dev/null | |
echo "Press button to start" | |
while true; do | |
while [ $(gpio read 8) == 1 ]; do |
#!/usr/bin/env ruby | |
require 'rubygems' | |
require 'optparse' | |
require 'maruku' | |
require 'wikicloth' | |
require 'tidy_ffi' | |
require 'pandoc-ruby' | |
opts = {} | |
OptionParser.new do |o| |
#------------------------------------------------------------ | |
# ATmega1284 | |
#------------------------------------------------------------ | |
# similar to ATmega164p | |
part | |
id = "m1284"; | |
desc = "ATMEGA1284"; | |
has_jtag = yes; |
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' |
<!-- 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> |
// additional required configuration to hook into the build script | |
android { | |
signingConfigs { | |
release | |
} | |
buildTypes { | |
release { | |
signingConfig signingConfigs.release | |
} |
This is a plugin meant for Jekyll.
Example use:
Easily embed a YouTube video. Just drop this file in your _plugins
directory.
{% youtube oHg5SJYRHA0 %}
__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('') |
#!/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 |