Skip to content

Instantly share code, notes, and snippets.

Andrew Theroux theroux

Block or report user

Report or block theroux

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View onecreativetampermonkey.js
// ==UserScript==
// @name One Creative
// @namespace http://tampermonkey.net/
// @version 0.1
// @description Intelligently auto-shows/hides search box and filters
// @author Andrew Theroux
// @match http://onecreative.aol.com/
// @grant none
// ==/UserScript==
/* jshint -W097 */
View searchfilterlock.css
body.ads .GETVLJGBCOB, body.ads .GETVLJGBGOB.GETVLJGBFP.GETVLJGBDOB, body.ads .GETVLJGBDOB {
display: block !important;
}
body.templates .GETVLJGBCOB, body.templates .GETVLJGBGOB.GETVLJGBFP.GETVLJGBDOB, body.templates .GETVLJGBDOB {
display: block !important;
}
body.campaigns .GETVLJGBL3B {
display: block !important;
View lockedPanel.css
.GETVLJGBHKB > tbody > tr > td:first-child {
transform: translateX(-100px);
}
.GETVLJGBCQ {
width: 140px;
}
.GETVLJGBBC {
width: auto;
}
.GETVLJGBBC div.buttonText {
@theroux
theroux / namespace.js
Last active Aug 29, 2015
Easy app namespace pattern reminder
View namespace.js
var arcturus = {
//Private Properties
var prop = true;
//Public Property
arcturus.property = "some string";
//Public Method
arcturus.pubfunc = function() {
View Acsii emojis
¯\_(ツ)_/¯
ಠ_ಠ
{◕ ◡ ◕}
(•_•)
( •_•)>⌐■-■
(⌐■_■)
View Scroll Fade JS
$(window).load(function() {
var $fadedElems = $('body').find('.faded');
$fadedElems.removeClass('faded');
});
$(function() {
var $container = $('.img-container'),
$childElement = $('.img-container img'),
imgArray = [],
currentImg = 0;
View Boot GetJS
Two ways of doing this.
OPTION A *** preferred
In module, have this:
<script type="text/javascript">
Boot.getJS({
src: 'http://se.loc:8888/js/somejsfile.js',
defer: 'ready'
});
@theroux
theroux / .gitignore
Created Jul 25, 2013
default .gitignore
View .gitignore
# Numerous always-ignore extensions
*.diff
*.err
*.orig
*.log
*~
# OS or Editor folders
.DS_Store
.cache
@theroux
theroux / throttle.js
Created Jul 17, 2013
Simple throttling function w/ jQuery
View throttle.js
var scrollTimeout;
var throttle = 50;
var scrollMessage = function (message) {
console.log(message);
};
$(window).on('scroll', function () {
if (!scrollTimeout) {
scrollTimeout = setTimeout(function () {
@theroux
theroux / collection.js
Last active Dec 19, 2015
jQuery plugin: collection method
View collection.js
(function ($) {
// Collection method.
$.fn.awesome = function () {
return this.each(function (i) {
// Do something awesome to each selected element.
$(this).html('awesome' + i);
});
};
};
You can’t perform that action at this time.