Skip to content

Instantly share code, notes, and snippets.

View aslamnd's full-sized avatar

Aslam Najeebdeen aslamnd

View GitHub Profile
@aslamnd
aslamnd / jquery.alterclass.js
Created December 2, 2012 23:54 — forked from peteboere/jquery.alterclass.js
jQuery alterClass plugin: Remove element classes with wildcard matching. Optionally add classes.
/**
* jQuery alterClass plugin
*
* Remove element classes with wildcard matching. Optionally add classes:
* $( '#foo' ).alterClass( 'foo-* bar-*', 'foobar' )
*
* Copyright (c) 2011 Pete Boere (the-echoplex.net)
* Free under terms of the MIT license: http://www.opensource.org/licenses/mit-license.php
*
*/
#!/bin/sh
# Just copy and paste the lines below (all at once, it won't work line by line!)
# MAKE SURE YOU ARE HAPPY WITH WHAT IT DOES FIRST! THERE IS NO WARRANTY!
function abort {
echo "$1"
exit 1
}
set -e
@aslamnd
aslamnd / sublime_settings.js
Last active December 18, 2015 09:49
A Standard Sublime user settings that we use in froncube.
{
"color_scheme": "Packages/Color Scheme - Default/Monokai.tmTheme",
"detect_indentation": true,
"font_face": "Inconsolata",
"font_size": 16.0,
"ignored_packages":
[
""
],
"tab_size": 2,
@aslamnd
aslamnd / gist:9004292
Last active August 29, 2015 13:56
My Default Rails Gemfile
gem 'haml-rails'
group :test, :development do
gem 'rspec-rails'
end
group :test do
gem 'capybara'
gem 'factory_girl_rails'
end
@aslamnd
aslamnd / Preferences.sublime-settings
Last active May 20, 2016 05:43
Sublime Preferences
{
"close_windows_when_empty": true,
"color_scheme": "Packages/Material Theme/schemes/Material-Theme.tmTheme",
"detect_indentation": true,
"disable_pyv8_update": true,
"ensure_newline_at_eof_on_save": true,
"folder_exclude_patterns":
[
".svn",
".git",
// Highcharts CheatSheet Part 1.
// Create interactive charts easily for your web projects.
// Download: http://www.highcharts.com/download
// More: http://api.highcharts.com/highcharts
// 1. Installation.
// Highcharts requires two files to run, highcharts.js and either jQuery, MooTools or Prototype or the Highcharts Standalone Framework which are used for some common JavaScript tasks.
// <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.8.2/jquery.min.js"></script>
// <script src="https://code.highcharts.com/highcharts.js"></script>
<?php
add_action( 'wp_enqueue_scripts', 'child_load_google_fonts' );
/**
* Enqueue Google Fonts using a function
*/
function child_load_google_fonts() {
// Setup font arguments
$query_args = array(
@aslamnd
aslamnd / 0_reuse_code.js
Last active August 29, 2015 14:17
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console