This file contains 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
import string | |
ALPHABET = 'ABCDEGHKLPQRSTUVWXYZ' + '23456789' | |
ALPHABET_REVERSE = dict((c, i) for (i, c) in enumerate(ALPHABET)) | |
BASE = len(ALPHABET) | |
START_FROM = 1 | |
def encode(n): | |
n = n * START_FROM |
This file contains 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
<?php | |
/** | |
* OAuth script for WordPress | |
* @author Louy Alakkad <louy08@gmail.com> | |
* @website http://l0uy.com/ | |
*/ | |
if( !defined( 'WP_OAUTH' ) ) : | |
define('WP_OAUTH', true); |
This file contains 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
//// | |
// Makes a div appear to be a stacked like 3 sheets of paper with each | |
// sheet offset by a given amount. | |
// | |
// Example: @include stacked(5px); | |
@mixin stacked($offset) { | |
border: 1px solid #494949; | |
&:after, &:before { | |
background: inherit; |
This file contains 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
//=Variables | |
//=Media Queries | |
$breakpoint-tiny: 20em; | |
$breakpoint-small: 30em; | |
$breakpoint-medium: 50em; | |
$breakpoint-extra-medium: 65em; //lol | |
$breakpoint-large: 80em; | |
$breakpoint-extra-large: 100em; | |
//=Global Styles |
This file contains 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
/** | |
* Utility functions for linking into native messaging applications (currently SMS and WhatsApp) without prepoluating a phone number. | |
* | |
* Plinks is based on this blog post I wrote earlier this year: | |
* http://blog.julianklotz.de/2015/03/14/the-sms-uri-scheme/ | |
* | |
* MIT license. | |
*/ | |
window.plinks = (function() { |
This file contains 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 | |
# -*- coding: utf-8 -*- | |
import sys | |
import random | |
import string | |
import re | |
from collections import Counter | |
This file contains 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
The gist that used to be here has since been implemented as a complete pip-installable package: https://github.com/anqxyr/mkepub | |
This notice is left here as a courtesy to the people who starred/bookmarked this gist in the past. | |
This file contains 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
< | |
%3C | |
< | |
< | |
< | |
< | |
< | |
< | |
< | |
< |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains 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/ruby | |
require 'osx/foundation' | |
OSX.require_framework '/System/Library/Frameworks/CoreServices.framework/Frameworks/CarbonCore.framework' | |
include OSX | |
$d=File.basename Dir.pwd | |
Dir.chdir '..' | |
fsevents_cb = proc do |stream, ctx, numEvents, paths, marks, eventIDs| | |
system "rsync --delete -rt --rsh=ssh '#{$d}' 'methylblue.com:public_html/'" |
OlderNewer