Skip to content

Instantly share code, notes, and snippets.

View starzonmyarmz's full-sized avatar

Daniel Marino starzonmyarmz

View GitHub Profile
// Run via OS X Terminal.app to block junk tweets in Tweetie.
// Info: http://atebits.posterous.com/test-filtering-in-tweetie-for-mac
defaults write com.atebits.tweetie-mac filterTerms -array "@gowalla" "http://gowal.la" "@foursquare" "http://4sq.com" "#followfriday"
@starzonmyarmz
starzonmyarmz / Skype_PanamericanaTheme_Mod.css
Created November 5, 2010 12:36
Modification to Skype 5.0 Beta Mac Panamericana Theme to make messaging text a little easier to read and scale.
/*
1. Goto applications folder and right-click (Control + click) the Skype icon and select "Show Package Contents"
2. Go to Content > Resources > ChatStyles > Panamericana.SkypeChatStyle and right-click (Control + click) the Skype icon and select "Show Package Contents"
3. Go to Content > Resources > css > main.css and replace the body {} styles with the below styles. Save the file.
4. Restart Skype
@starzonmyarmz
starzonmyarmz / RandomSiteColors.js
Created January 10, 2011 15:59
Function that picks a random hue for site colors on http://iamdanielmarino.com
(function colorScheme() {
var h = Math.floor(Math.random() * 360), // Hue
// Border Sides
sides = ["top", "right", "bottom", "left"],
// Elements
backgroundColor = ["#doily span", "#content h3", "nav h3", "#bg_color"],
color = ["a:not(#social a)", "#doily b"],
borderColor = ["#page_header", "#doily", "#content h3"],
// Misc Variables
a, i;
@starzonmyarmz
starzonmyarmz / grabby_css_override.css
Created February 10, 2011 14:19
Overrides the styles on http://grab.by - mostly it gets rid of the annoying sidebar with advertising
/* Overrides the styles on http://grab.by
* Mostly it gets rid of the annoying sidebar with advertising */
#sidebar { display: none !important; }
#viewgrab { margin: 10px; }
<!DOCTYPE html>
<html>
<head>
<title>Cramer Development, Inc. - Web Development</title>
<meta charset="UTF-8" />
<style>
body { width: 80%; margin: 0 auto; text-align: center; background-color: #1A1A1A; }
div#main { margin-top: 300px; }
img { border: none; }
</style>
@starzonmyarmz
starzonmyarmz / grooveshark.css
Created February 21, 2011 13:25
Removes ads and displays application as full window
#capital { display: none !important; }
#application { margin-right: 0 !important; }
@starzonmyarmz
starzonmyarmz / redmine_dotjs_script.js
Created April 11, 2011 14:04
Hacks/Mods to be applied to an installation of redmine using dotjs. Rename this file to your installation's url following dotjs's naming convention.
/*
* I hate how the Issue Subject field has autocomplete turned on,
* but others at my place of employment don't share the same sentiments
* so this script will turn off autocomplete locally without modifying
* the code base.
*/
(function noAutoComplete() {
document.getElementById("issue_subject").setAttribute("autocomplete", "off");
})(
@starzonmyarmz
starzonmyarmz / js_dom.html
Created June 24, 2011 20:34 — forked from smith/js_dom.html
Get DOM Structure from BODY to clicked element
<!doctype html>
<html lang="en">
<head>
<!--[if lt IE 9]>
<script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script>
<![endif]-->
<style>
@starzonmyarmz
starzonmyarmz / iOS_test.js
Created August 19, 2011 17:36
Test for iOS devices
/* Test for iOS device, and insert class on body tag. You can't upload files
* on iOS devices, but you can on Android devices, so using mobile style sheets
* won't work for showing and hiding certain content during the sign up process. */
(function isIOS() {
if (/iPhone|iPod|iPad/i.test(navigator.userAgent)) {
$('html').addClass("ios");
} else {
$('html').addClass("no-ios");
}
})();
// Countdown Clock
function countdown(action) {
function countItDown() {
var cd = $('#countdown');
if (cd.val() > 0) {
cd.val(cd.val() - 1);
setTimeout(countItDown, 1000);
} else {
clearTimeout();