Skip to content

Instantly share code, notes, and snippets.

View oknoway's full-sized avatar
Zip! Zap! Zop!

Nate Bedortha oknoway

Zip! Zap! Zop!
View GitHub Profile
@davidpett
davidpett / _ease.scss
Last active December 13, 2023 22:49
Easing Equations as SCSS variables
/*
* Easing Equations ported to CSS by @matthewlein - http://matthewlein.com/ceaser/
* Converted to SCSS vars by @pettpett
*
* sample usage:
* a {
* color: #ff0000;
* transition: color 0.5s $easeOutQuint;
* &:hover,
@rentzsch
rentzsch / setup github issues labels.sh
Last active July 1, 2021 22:10
Shell script to set up a GitHub Project's Issues' Labels as described in <http://rentzsch.tumblr.com/post/252878320/my-lighthouse-ticket-settings-with-colors>. WARNING: script assumes a newish project that hasn't really used labels yet. It deletes all default labels, which means DATA LOSS if you've used them for anything.
USER=rentzsch
PASS=mypassword
REPO=mogenerator
# Delete default labels
curl --user "$USER:$PASS" --include --request DELETE "https://api.github.com/repos/$USER/$REPO/labels/bug"
curl --user "$USER:$PASS" --include --request DELETE "https://api.github.com/repos/$USER/$REPO/labels/duplicate"
curl --user "$USER:$PASS" --include --request DELETE "https://api.github.com/repos/$USER/$REPO/labels/enhancement"
curl --user "$USER:$PASS" --include --request DELETE "https://api.github.com/repos/$USER/$REPO/labels/invalid"
curl --user "$USER:$PASS" --include --request DELETE "https://api.github.com/repos/$USER/$REPO/labels/question"
@trepmal
trepmal / multi-feat-img.php
Created November 16, 2012 20:30
[WordPress] Do multiple featured-image-esque meta boxes
<?php
/*
Plugin Name: Multiple Featured Images
Description: NOT production ready. May cause tears.
Version: 2012.12.13
Author: Kailey Lampert
Author URI: kaileylampert.com
*/
new MFI_Meta_Box( 'derp', 'Derp Image', '200', '400', 'post' );
@trepmal
trepmal / wp.sh
Created September 20, 2012 00:11
[bash] Download WordPress, setup database, configure, launch
#!/bin/bash
## > ./wp.sh sitename mysqluser userpassword
## sitename: directory the site will located in
## mysqluser: user and database name
## userpassword: mysql user's password
## ex: ./wp.sh testsite tester 7n5nSmg15X5s
@MohamedAlaa
MohamedAlaa / tmux-cheatsheet.markdown
Last active November 15, 2024 09:51
tmux shortcuts & cheatsheet

tmux shortcuts & cheatsheet

start new:

tmux

start new with session name:

tmux new -s myname
@chriseppstein
chriseppstein / 0_selector_hacks.scss
Created September 14, 2011 04:27
This gist demonstrates some uses of the new sass feature: Passing content blocks to mixins.
@mixin ie6 { * html & { @content } }
#logo {
background-image: url("/images/logo.png");
@include ie6 { background-image: url("/images/logo.gif"); }
}