Skip to content

Instantly share code, notes, and snippets.

# This is a template .gitignore file for git-managed WordPress projects.
#
# Fact: you don't want WordPress core files, or your server-specific
# configuration files etc., in your project's repository. You just don't.
#
# Solution: stick this file up your repository root (which it assumes is
# also the WordPress root directory) and add exceptions for any plugins,
# themes, and other directories that should be under version control.
#
# See the comments below for more info on how to add exceptions for your
@seethroughdev
seethroughdev / gist:2046085
Created March 15, 2012 19:03
Testing Custom Countdown plugin
(function($){
$.fn.wedgeCountdown = function(options) {
//set default options
var defaults = {
date : null,
showSeconds : true,
complete : null,
completeText: "Timer done!"
@seethroughdev
seethroughdev / database.yml
Created August 1, 2012 21:55
MSTWJS -- database.yml modification for use with MAMP.
# MySQL. Versions 4.1 and 5.0 are recommended.
#
# Install the MYSQL driver
# gem install mysql2
#
# Ensure the MySQL gem is defined in your Gemfile
# gem 'mysql2'
#
# And be sure to use new-style password hashing:
# http://dev.mysql.com/doc/refman/5.0/en/old-client.html
@seethroughdev
seethroughdev / 20110604131534_devise_create_users.rb
Created August 1, 2012 21:57
MSTWJS -- devise migration file for +2.0 install
class DeviseCreateUsers < ActiveRecord::Migration
def self.up
create_table(:users) do |t|
## Database authenticatable
t.string :email, :null => false, :default => ""
t.string :encrypted_password, :null => false, :default => ""
## Recoverable
t.string :reset_password_token
t.datetime :reset_password_sent_at
@seethroughdev
seethroughdev / gist:3875046
Created October 11, 2012 19:48
Meteor template rerender
# show current page class in main container
togglePageClass = (currentPage) ->
currentTemplate = Meteor.render ->
currentPage
# currentTemplate = Meteor.render ->
# Template.About()
$pageContainer = $('.main-content')
<style>
#smarty_debug {
position: fixed;
bottom: 0;
right: 0;
background: rgba(237, 241, 241, .9);
overflow: scroll;
height: 100%;
width: 20%;
border-left: 1px solid white;
@seethroughdev
seethroughdev / gist:7864387
Last active December 30, 2015 17:59
Hi Louis, Here are the 2 versions of the test.
// this works as expected
describe("github test", function() {
var res;
res = {};
before(function(done) {
chai.request(githubReqObj.url).get('').req(function(req) {
req.set({
'Accept': 'application/vnd.github.beta+json',
'User-Agent': 'A test application for homebrew cask dotfile'
});
# Generated by cask-dotfile-generator
# https://github.com/seethroughtrees/brew-cask-dotfile-generator
# Make sure we're using the latest Homebrew
brew update
# Upgrade any already-installed formulae
brew upgrade
@seethroughdev
seethroughdev / .brew
Created December 17, 2013 18:35
A copy of a .brew file generated with homebrew-dotfile-generator.
#!/usr/bin/env bash
# Generated by cask-dotfile-generator
# Created by: @seethroughtrees
# https://github.com/seethroughtrees/brew-cask-dotfile-generator
# Make sure we’re using the latest Homebrew
brew update
@seethroughdev
seethroughdev / Brewfile
Last active March 6, 2018 19:43
An example Brewfile generated with Homebrew-Dotfile-Generator
# Generated by cask-dotfile-generator
# Created by: @seethroughtrees
# https://github.com/seethroughtrees/brew-cask-dotfile-generator
install bash
install bash-completion
install brew-cask
install casperjs
install cscope