Skip to content

Instantly share code, notes, and snippets.

View FrankM1's full-sized avatar
🎯
Focusing

Franklin Gitonga FrankM1

🎯
Focusing
View GitHub Profile
@FrankM1
FrankM1 / Skin-for-Video-JS.markdown
Created March 21, 2014 12:52
A Pen by Franklin Gitonga.
{
"auto_complete_commit_on_tab": true,
"color_scheme": "Packages/Color Scheme - Default/Tomorrow-Night-Eighties.tmTheme",
"file_exclude_patterns":
[
".DS_Store"
],
"folder_exclude_patterns":
[
"bin",
#!/usr/bin/env bash
# bash 4.1.5(1) Linux Ubuntu 10.04 Date : 2011-08-25
#
# _______________| httpstatus : get HTTP status code
#
# Usage: httpstatus URL [timeout] [--code or --status] [see 4.]
# ^message with code (default)
# ^code (numeric only)
# ^in secs (default: 3)
# ^URL without "http://" prefix works fine.
@FrankM1
FrankM1 / spacenav.js
Created June 5, 2014 01:41
Space out menus evenly
(function($){
// Space out menu items evenly
$.fn.spaceNav = function() {
var mainMenu = $(this).find('.nav-collapse').find('.nav');
var weatherMenu = $(this).find('#nav-weather');
var menuItems = $(this).find('li');
var menuLinks = $(this).find('li').find('a');
@FrankM1
FrankM1 / Wave.markdown
Created July 20, 2014 21:37
A Pen by Franklin Gitonga.
<?php
/**
* WordPress Query Comprehensive Reference
* Compiled by luetkemj - luetkemj.com
*
* CODEX: http://codex.wordpress.org/Class_Reference/WP_Query#Parameters
* Source: https://core.trac.wordpress.org/browser/tags/3.9/src/wp-includes/query.php
*/
$args = array(
<?php
/*
Plugin Name: Test
*/
class My_Like_Button {
function __construct()
{
$this->hooks();
}
@FrankM1
FrankM1 / shortcode-supported list
Created June 4, 2012 14:20
Supported Shortcodes
<?
global $shortcode_tags;
echo "<pre>"; print_r($shortcode_tags); echo "</pre>";
?>
@FrankM1
FrankM1 / dummy images wordpress
Created August 2, 2012 01:03
dummy images for wordpress before export
function dummy_wp_get_attachment_url( $url, $post_id ){
return 'http://dummy/image/URL';
}
add_filter( 'wp_get_attachment_url' , 'dummy_wp_get_attachment_url' , 10 , 2 );
@FrankM1
FrankM1 / jquery.slider.css
Created August 2, 2012 03:11 — forked from lukemorton/jquery.slider.css
slider tutorial
.slider-container {
width: 600px;
height: 200px;
overflow: hidden;
position: relative;
}
.slider ul, .slider li {
margin: 0;
padding: 0;
list-style: none;