Skip to content

Instantly share code, notes, and snippets.

View api.json
{
"openapi": "3.0.0",
"info": {
"version": "1.0.0",
"title": "Shared Service Layer - Search",
"description": "The api for the Search Project"
},
"paths": {
"/search/v1/location": {
"post": {
View gist:92d1dc5c41269f91f2cf19725befa8c6
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 800 600">
<style>
@keyframes zk3bx7ubb5wvv6jbwzoaud1b_t {
0% {
transform: translate(127.2px,93.4px) rotate(0deg) translate(-127.2px,-93.4px);
}
50% {
transform: translate(127.2px,93.4px) rotate(10deg) translate(-127.2px,-93.4px);
}
100% {
View gist:ffbb270893933bf938207b4de80398ae
#embed-footer { display: none; }
#embed-nav { display: none; }
View keybase.md

Keybase proof

I hereby claim:

  • I am hawkz on github.
  • I am hawkz (https://keybase.io/hawkz) on keybase.
  • I have a public key ASDRT-L_53MaZSGJ-bVqYrGtB23qjlBerMmbn6pkzd9shAo

To claim this, I am signing this object:

View test.css
@font-face {
font-family: 'icons';
src: url(../fonts/icons.eot?social);
src: url(../fonts/icons.eot?#iefixsocial) format("embedded-opentype"),
url(../fonts/icons.woff?social) format("woff"),
url(../fonts/icons.ttf?social) format("truetype"),
url(../fonts/icons.svg?social#icons) format("svg");
font-weight: normal;
font-style: normal;
}
View rock-paper-lasers.py
#!/usr/bin/python3
"""An LED wizard battle."""
import random
def reset(beam=[0] * 30):
"""Start the battle."""
beam = ['-'] * int(len(beam) / 2) + ['-'] * int(len(beam) / 2)
beam[int(len(beam) / 2)] = '*'
return beam
View Intercom Django intergration HMAC & Hashlib keygen
# Django & Intercom.io
Create a template tag:
```python
import hashlib as h
import hmac as h2
@register.filter(name='hmac')
def hmac(userid, key):
"""Return the encrypted key"""
View micropython.py
import pyb
switch = pyb.Switch()
leds = [pyb.LED(i+1) for i in range(4)]
accel = pyb.Accel()
i = 0
while not switch():
y = accel.y()
i = (i + (1 if y > 0 else -1)) % len(leds)
@hawkz
hawkz / html5video.sh
Created Jan 6, 2016 — forked from liamcurry/html5video.sh
automated conversion of a file to all three html5 compatible video formats - h.264, ogg, and webm
View html5video.sh
#!/bin/sh
# Output file for HTML5 video
# requirements: ffmpeg .6+
# usage: ./html5video.sh infile.mp4 640x360
target_directory='converted'
file=`basename $1`
filename=${file%.*}
filepath=`dirname $1`