Skip to content

Instantly share code, notes, and snippets.

View stormwarning's full-sized avatar
👀

Jeff stormwarning

👀
View GitHub Profile
@stormwarning
stormwarning / keybase-to-pgp
Created September 21, 2018 16:52
Error output when trying to import keybase key into pgp
❯ keybase pgp export -s | gpg --import --allow-secret-key-import
gpg: directory '/Users/SELF/.gnupg' created
gpg: keybox '/Users/SELF/.gnupg/pubring.kbx' created
gpg: /Users/SELF/.gnupg/trustdb.gpg: trustdb created
gpg: bad data signature from key 0XFOO: Wrong key usage (0x19, 0x2)
gpg: key 0XBAR: public key "keybase.io/USER <USER@keybase.io>" imported
gpg: bad data signature from key 0XFOO: Wrong key usage (0x19, 0x2)
gpg: key 0XBAR/0XBAR: error sending to agent: Inappropriate ioctl for device
gpg: error building skey array: Inappropriate ioctl for device
gpg: Total number processed: 1
@stormwarning
stormwarning / tooltip.js
Created May 21, 2017 20:10
Tooltip script from culturedcode.com
tooltip = {
elements: void 0,
CLASS_BUBBLE: "tooltip-bubble",
CLASS_CONTENT: "tooltip-content",
CLASS_HEADER: "tooltip-header",
CLASS_FOOTER: "tooltip-footer",
STATE_INIT: "is-initialized",
STATE_VISIBLE: "is-visible",
init: function(e) {
this.elements = e;
{
"plugins": [
"stylelint-order",
"stylelint-scss"
],
"extends": [
"stylelint-config-recess-order"
],
"rules": {
"color-hex-case": "lower",
@stormwarning
stormwarning / init.coffee
Created July 20, 2015 14:59
Fix CLI Linter path setup in Atom.
#
# Fix CLI Linter path setup.
#
# @since 1.0.2
# @link https://github.com/AtomLinter/Linter/issues/726
#
childProcess = require( 'child_process' );
process.env.PATH = String(
childProcess.execFileSync(\
{
"name": "theme_info",
"logo": "https:\/\/cdn.shopify.com\/s\/files\/1\/0070\/7032\/files\/2010_6_23_Shopify-Green_256x256.jpg",
"settings": [
{
"type": "header",
"content": "Shopify Cool Theme"
},
{
"type": "paragraph",
@stormwarning
stormwarning / magnific-youtu.js
Created June 26, 2015 15:05
Enable support for YouTube short URLs in Magnific Popup
$('.video').magnificPopup({
type: 'iframe',
iframe: {
patterns: {
youtu: {
index: 'youtu.be',
id: function( url ) {
// Capture everything after the hostname, excluding possible querystrings.
var m = url.match( /^.+youtu.be\/([^?]+)/ );
@stormwarning
stormwarning / twitter-count.php
Created April 24, 2015 15:20
Get following/followers count of an Twitter account, without using 1.1 API
<?php
/**
* Get following/followers count of an Twitter account, without using 1.1 API
* @author Lancelot HARDEL
* @param username That's clear
* @param cache If you want to enable cache (or not)
* @param cachetime Time that the cachefile is valied
* @param stat_name you can use two values : followers, or following
* @return int
*/
@stormwarning
stormwarning / aspect-ratio.scss
Created February 4, 2015 05:15
Sass (SCSS) variables for common aspect ratios.
/**
* Variables for common aspect ratios.
*/
$golden: 61.8047%; // 1.6180:1
$35mm: 66.6667%; // 3:2
$panorama: 33.3333%; // 3:1
$imax: 69.9301%; // 1.43:1
$widescreen: 56.1798%; // 1.78:1

Keybase proof

I hereby claim:

  • I am stormwarning on github.
  • I am stormwarning (https://keybase.io/stormwarning) on keybase.
  • I have a public key whose fingerprint is DCC1 710F F6EC 1BAE F346 D939 BC0A 96F4 9357 0C6C

To claim this, I am signing this object:

@stormwarning
stormwarning / console.js
Last active August 29, 2015 14:05
Clever little console.log from mapbox.com
// Hiring smart people
if (typeof console !== 'undefined' && typeof console.log === 'function') {
console.log('\r\n%c * .--.\r\n%c \/ \/ `\r\n%c + | |\r\n%c \' \\ \\__,\r\n%c * + \'--\' *\r\n%c + \/\\\r\n%c + .\' \'. *\r\n%c * \/======\\ +\r\n%c ;:. _ ;\r\n%c |:. (_) |\r\n%c |:. _ |\r\n%c + |:. (_) | *\r\n%c ;:. ;\r\n%c .\' \\:. \/ `.\r\n%c \/ .-\'\':._.\'`-. \\\r\n%c |\/ \/||\\ \\|\r\n%c _..--\"\"\"````\"\"\"--.._\r\n%c _.-\'`` ``\'-._\r\n%c -\' %cHello, explorer%c \'-\r\n%c' +
'\n Curious? http://mapbox.com/jobs',
'color:#D0E3F1','color:#D0E3F1','color:#C0DAEC','color:#C0DAEC','color:#B0D1E8','color:#B0D1E8','color:#A1C7