Skip to content

Instantly share code, notes, and snippets.

View majman's full-sized avatar
🐢
Turtle

Marshall Jones majman

🐢
Turtle
View GitHub Profile
@majman
majman / reverse-colors.js
Created July 2, 2012 18:59
Reverse Page Font & Background Colors
function invertColor(color){
var r,g,b;
if(color.indexOf('rgb') >= 0){
if(color == 'rgba(0, 0, 0, 0)'){
color = 'rgb(255,255,255)';
}
color = color.substring(color.indexOf('(')+1, color.indexOf(')')).split(',');
r = color[0];
g = color[1];
b = color[2];
@majman
majman / index.html
Created May 23, 2013 15:36
A CodePen by GreenSock. Letter by Letter Animation - http://forums.greensock.com/topic/7440-fade-in-one-word-at-a-time/
<div id="textDiv">a quick sample of letter by letter animation</div>
@majman
majman / index.html
Created May 23, 2013 15:36
A CodePen by GreenSock. Letter by Letter Animation - http://forums.greensock.com/topic/7440-fade-in-one-word-at-a-time/
<div id="textDiv">a quick sample of letter by letter animation</div>
@majman
majman / index.html
Created May 23, 2013 15:36
A CodePen by GreenSock. Letter by Letter Animation - http://forums.greensock.com/topic/7440-fade-in-one-word-at-a-time/
<div id="textDiv">a quick sample of letter by letter animation</div>
@majman
majman / index.html
Created May 23, 2013 15:36
A CodePen by GreenSock. Letter by Letter Animation - http://forums.greensock.com/topic/7440-fade-in-one-word-at-a-time/
<div id="textDiv">a quick sample of letter by letter animation</div>
@majman
majman / index.html
Created May 23, 2013 15:36
A CodePen by GreenSock. Letter by Letter Animation - http://forums.greensock.com/topic/7440-fade-in-one-word-at-a-time/
<div id="textDiv">a quick sample of letter by letter animation</div>
@majman
majman / Preferences.sublime-settings
Created June 22, 2014 16:55
Sublime User Prefs
{
"color_scheme": "Packages/Color Scheme - Default/Mac Classic.tmTheme",
"enable_tab_scrolling": false,
"file_exclude_patterns":
[
"*.crx",
"*.xpi",
"*.pyc"
],
"font_face": "Monaco",
@majman
majman / Default.sublime-keymap
Created June 22, 2014 16:56
Sublime Key Bindings
[
{ "keys": ["super+alt+w"], "command": "toggle_setting", "args": {"setting": "word_wrap"} },
{ "keys": ["super+alt+k"], "command": "set_mark" },
{ "keys": ["super+shift+v"], "command": "paste_and_indent" },
{ "keys": ["super+alt+v"], "command": "clipboard_paste_previous" },
{
"keys": ["ctrl+alt+l"],
"command": "toggle_setting",
"args":
{
@majman
majman / feedly-styles.css
Last active August 29, 2015 14:05
stylebot styles for feedly
#feedlyFrame {
width: calc(100% - 268px);
}
#feedlyPage {
width: auto;
}
#feedlyPart {
float: none;
@majman
majman / .phoenix.js
Created September 18, 2014 18:41
phoenix.js for quickly sending illustrator and liveview windows to right monitor
// Start/select apps
App.allWithTitle = function( title ) {
return _(this.runningApps()).filter( function( app ) {
if (app.title() === title) {
return true;
}
});
};
App.focusOrStart = function ( title ) {