Skip to content

Instantly share code, notes, and snippets.

View interactiveRob's full-sized avatar

Rob Kirkner interactiveRob

View GitHub Profile
@jiglesiasabio
jiglesiasabio / select-lang-codes
Created December 1, 2011 18:36
Select options for all languages HTML·FORM
http://www.loc.gov/standards/iso639-2/ISO-639-2_utf-8.txt
ISO-639-2 Standard three letter codes for langs
<option value="aar"> Afar </option>
<option value="abk"> Abkhazian </option>
<option value="ace"> Achinese </option>
<option value="ach"> Acoli </option>
<option value="ada"> Adangme </option>
<option value="ady"> Adyghe Adygei </option>
@gre
gre / easing.js
Last active October 30, 2024 16:49
Simple Easing Functions in Javascript - see https://github.com/gre/bezier-easing
/*
* This work is free. You can redistribute it and/or modify it under the
* terms of the Do What The Fuck You Want To Public License, Version 2,
* as published by Sam Hocevar. See the COPYING file for more details.
*/
/*
* Easing Functions - inspired from http://gizma.com/easing/
* only considering the t value for the range [0, 1] => [0, 1]
*/
EasingFunctions = {
@joyrexus
joyrexus / README.md
Last active November 5, 2024 14:17 — forked from liamcurry/gist:2597326
Vanilla JS equivalents of jQuery methods

Sans jQuery

Events

// jQuery
$(document).ready(function() {
  // code
})
@adamstac
adamstac / gist:7462202
Last active October 30, 2024 21:02
Install and configure Sendmail on Ubuntu

Install and configure Sendmail on Ubuntu

This should help you get Sendmail installed with basic configuration on Ubuntu.

  1. If sendmail isn't installed, install it: sudo apt-get install sendmail
  2. Configure /etc/hosts file: nano /etc/hosts
  3. Make sure the line looks like this: 127.0.0.1 localhost yourhostname
  4. Run Sendmail's config and answer 'Y' to everything: sudo sendmailconfig
  5. Restart apache sudo service apache2 restart
@mobilemind
mobilemind / git-tag-delete-local-and-remote.sh
Last active November 2, 2024 08:30
how to delete a git tag locally and remote
# delete local tag '12345'
git tag -d 12345
# delete remote tag '12345' (eg, GitHub version too)
git push origin :refs/tags/12345
# alternative approach
git push --delete origin tagName
git tag -d tagName
<meta property="og:title" content="" />
<meta property="og:type" content="website" />
<meta property="og:site_name" content=""/>
<meta property="og:image" content="" />
<meta property="og:url" content="" />
<meta property="og:description" content="" />
<meta name="twitter:card" content="summary">
<meta name="twitter:creator" content="@">
<meta name="twitter:url" content="">
<meta name="twitter:title" content="">
@baranok
baranok / xdebug-monokai.css
Last active November 16, 2022 22:07
theme for php xdebug
/**
*
* XDEBUG - Monokai scheme
*
* Palette:
* #272822 - grayish darkgreen, default background
* #F8F8F2 - ivory white, default font
* #75715E - tan, comment
* #FD971F - orange URLs without commas
* #AE81FF - purple numbers
@szydan
szydan / gist:75b8a03b3fb4e099d5c1
Last active April 3, 2022 01:26
delete all commits from repo
git checkout --orphan latest_branch && \
git add -A && \
git commit -am "initial commit" && \
git branch -D master && \
git branch -m master && \
git push -f origin master
Taken from
@vwasteels
vwasteels / getMenuHierarchically.md
Last active June 28, 2022 13:12
Retrieve menu items hierarchically in Wordpress
/**
 * Get Menu Items From Location
 *
 * @param $location : location slug given as key in register_nav_menus
 */

function getMenuItemsFromLocation($location) {
	$theme_locations = get_nav_menu_locations();
@omurphy27
omurphy27 / echo-enqueued-styles-scripts-wordpress.php
Last active August 31, 2024 13:04
Wordpress - Print Out All Enqueued Scripts And Styles On A Page
<?php
// add the below to your functions file
// then visit the page that you want to see
// the enqueued scripts and stylesheets for
function se_inspect_styles() {
global $wp_styles;
echo "<h2>Enqueued CSS Stylesheets</h2><ul>";
foreach( $wp_styles->queue as $handle ) :
echo "<li>" . $handle . "</li>";