Skip to content

Instantly share code, notes, and snippets.

View Melonbwead's full-sized avatar
ʕ̡̢̡*✪௰✪ૢʔ̢̡̢ Caffeine~!

Melon Melonbwead

ʕ̡̢̡*✪௰✪ૢʔ̢̡̢ Caffeine~!
  • ꒰•̥̥̥̥̥̥̥ ﹏ •̥̥̥̥̥̥̥̥๑꒱
  • Verse
View GitHub Profile
@Melonbwead
Melonbwead / gist:5369941
Created April 12, 2013 06:37
Mumble Details. Feel Free to Join!
54.228.196.116:64738
@Melonbwead
Melonbwead / mobileDev.js
Last active December 16, 2015 20:39
Useful Snippets for Mobile Web Development. Any comments or suggestions will be greatly appreciated.
/////////////////////////////////////////////////////////////////////////////////////////////////
// USERAGENT SNIFFING / MOBILE BROWSER DETECTION
/////////////////////////////////////////////////////////////////////////////////////////////////
if((navigator.userAgent.match(/iPhone/i)) || (navigator.userAgent.match(/iPod/i))) {
$("html").addClass("iosmobile");
}
if(navigator.userAgent.match(/Android/i)){
$("html").addClass("android");
@Melonbwead
Melonbwead / sublime-settings.js
Last active December 18, 2015 09:59
My Sublime Settings.
{
"auto_match_enabled": false,
"bold_folder_labels": true,
"caret_extra_width": 1,
"caret_style": "phase",
"close_windows_when_empty": false,
"color_scheme": "Packages/Dracula Color Scheme/Dracula.tmTheme",
"copy_with_empty_selection": false,
"drag_text": false,
"draw_minimap_border": true,
@Melonbwead
Melonbwead / gist:6539578
Created September 12, 2013 15:35
Old Rails setup Cheatsheel
alias ss='thin --stats "/thin/stats" start'
alias sg='ruby script/generate'
alias sd='ruby script/destroy'
alias sp='ruby script/plugin'
alias sr='ruby script/runner'
alias ssp='ruby script/spec'
alias rdbm='rake db:migrate'
alias rdbtp='rake db:test:prepare'
alias migrate='rake db:migrate && rake db:test:prepare'
alias sc='ruby script/console'
@Melonbwead
Melonbwead / jshintrc
Last active December 27, 2015 18:19
jshintrc
{
"node": true,
"browser": true,
"esnext": true,
"bitwise": true,
"camelcase": true,
"curly": true,
"eqeqeq": true,
"immed": true,
"indent": 2,
@Melonbwead
Melonbwead / gist:8523775
Created January 20, 2014 16:48
error js
window.onerror = function(message, url, line) {
window.log('EXCEPTION', message + "|" + url + "|" + line);
return window.log_error('Exception', message, window.location.pathname, url, line);
};
var __slice = [].slice;
window.log_error = function() {
var arg, args, error_name, message;
error_name = arguments[0], args = 2 <= arguments.length ? __slice.call(arguments, 1) : [];
message = [
@Melonbwead
Melonbwead / .zshrc
Last active March 23, 2017 09:21
.zshrc
# Path to your oh-my-zsh configuration.
ZSH=$HOME/.oh-my-zsh
export PIVOTAL_TOKEN=''
# Set name of the theme to load.
# Look in ~/.oh-my-zsh/themes/
# Optionally, if you set this to "random", it'll load a random theme each
# time that oh-my-zsh is loaded.
@Melonbwead
Melonbwead / gist:10995175
Created April 17, 2014 16:13
git scrub out files entirely
git filter-branch --force --index-filter \
'git rm --cached --ignore-unmatch node_modules/*' \
--prune-empty --tag-name-filter cat -- --all
@Melonbwead
Melonbwead / .scss-lint.yml
Created August 5, 2014 13:40
scss lint config
# Default application configuration that all configurations inherit from.
linters:
BorderZero:
enabled: true
CapitalizationInSelector:
enabled: true
ColorKeyword:
enabled: true
@Melonbwead
Melonbwead / coffeelint config
Created August 6, 2014 15:20
coffeelint config
{
"coffeescript_error": {
"level": "error"
},
"arrow_spacing": {
"name": "arrow_spacing",
"level": "warn"
},
"no_tabs": {
"name": "no_tabs",