Skip to content

Instantly share code, notes, and snippets.

View peavers's full-sized avatar
💭
I'm ready. Lets go.

Chris Turner peavers

💭
I'm ready. Lets go.
  • Texas
  • 14:29 (UTC -06:00)
View GitHub Profile
@peavers
peavers / gist:419b1ae476d530da20ef
Last active August 29, 2015 14:00
Picard music splitting
## File rename
$if2(%albumartist%,%artist%)/%album% $if(%date%,[$left(%date%,4)] )/%title%
## Scripting
$if(%originaldate%,$set(date,%originaldate%))
$set(title,$replace(%title%,...,…))
$set(album,$replace(%album%,...,…))
$set(artist,$replace(%artist%,...,…))
$set(albumartist,$replace(%albumartist%,...,…))
@peavers
peavers / php.ini
Last active August 29, 2015 14:00
xdebug config
zend_extension = /usr/lib/php5/20100525/xdebug.so
xdebug.idekey = PHPSTORM
xdebug.profiler_enable = 0
xdebug.profiler_enable_trigger = 1
xdebug.remote_connect_back = 1
xdebug.remote_enable = 1
xdebug.remote_port = 9001
xdebug.remote_handler = dbgp
xdebug.remote_mode = req
xdebug.remote_autostart= 1
@peavers
peavers / update-script.sh
Created May 5, 2014 09:37
Updates local .lock file and commits it to git.
#!/bin/bash
git fetch
composer update
git add composer.*
git commit -m 'auto update script'
git push -u origin master
@peavers
peavers / .gitignore
Created May 13, 2014 09:46
General git ignore file
# Composer
vendor
vendor/*
composer.phar
# IntelliJ - PhpStorm and PyCharm
.idea
.idea/
.idea/*
*.iml
@peavers
peavers / .rtorrent.rc
Last active August 29, 2015 14:01
rtorrent settings
# This is an example resource file for seeder1rent. Copy to
# ~/.seeder1rent.rc and enable/modify the options as needed. Remember to
# uncomment the options you wish to enable.
#
# Based on original .seeder1rent.rc file from http://libtorrent.rakshasa.no/
# Modified by Lemonberry for rtGui http://rtgui.googlecode.com/
#
# This assumes the following directory structure:
#
# /Torrents/Downloading - temporaray location for torrents while downloading (se e "directory")
/*
* Create a new ID for each element on the page such as news, popular, data etc
*/
#headline {
width: 65%;
float: left;
}
#pop {
width: 33%;
{
"movies":[
{
"rating":{
"imdb":[
7.3,
451192
]
},
"tmdb_id":557,
@peavers
peavers / script.js
Created April 8, 2015 22:02
Adds browser function
jQuery.noConflict();
(function($) {
$(document).ready(function() {
/* removes text from search form on focus and replaces it on unfocus - if text is entered then it does not get replaced with default on unfocus */
$('#SearchForm_SearchForm_action_results').val('L');
var searchField = $('#SearchForm_SearchForm_Search');
var default_value = searchField.val();
searchField.focus(function() {
$(this).addClass('active');
@peavers
peavers / 0_reuse_code.js
Last active August 29, 2015 14:27
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
@peavers
peavers / javascript_resources.md
Last active August 29, 2015 14:27 — forked from jookyboi/javascript_resources.md
Here are a set of libraries, plugins and guides which may be useful to your Javascript coding.

Libraries

  • jQuery - The de-facto library for the modern age. It makes things like HTML document traversal and manipulation, event handling, animation, and Ajax much simpler with an easy-to-use API that works across a multitude of browsers.
  • Backbone - Backbone.js gives structure to web applications by providing models with key-value binding and custom events, collections with a rich API of enumerable functions, views with declarative event handling, and connects it all to your existing API over a RESTful JSON interface.
  • AngularJS - Conventions based MVC framework for HTML5 apps.
  • Underscore - Underscore is a utility-belt library for JavaScript that provides a lot of the functional programming support that you would expect in Prototype.js (or Ruby), but without extending any of the built-in JavaScript objects.
  • lawnchair - Key/value store adapter for indexdb, localStorage