Skip to content

Instantly share code, notes, and snippets.

@eric-miller2129
eric-miller2129 / package.json
Created December 2, 2015 20:53
Package.json for a simple react app
{
"name": "agently",
"version": "1.0.0",
"description": "",
"main": "index.js",
"scripts": {
"watch": "watchify game/core.js -o game.js -v",
"browserify": "browserify core.js | uglifyjs > game.js"
},
"author": "",
@eric-miller2129
eric-miller2129 / guid_update.sql
Created August 31, 2015 14:42
WordPress GUID update -- SQL
-- Update wordpress guid if need be.
UPDATE wp_options SET option_value = replace(option_value, 'http://old_url.com', 'http://new_url.com') WHERE option_name = 'home' OR option_name = 'siteurl';
UPDATE wp_posts SET guid = replace(guid, 'http://old_url.com', 'http://new_url.com');
var rsg = rsg || {};
// (function () {
// 'use strict';
// }());
rsg = (function(){
'use strict';
var string_generator = {};
var gulp = require('gulp'),
connect = require('gulp-connect'),
sass = require('gulp-sass'),
modRewrite = require('connect-modrewrite');
gulp.task('webserver', function() {
connect.server({
root: '',
livereload: true,
port: 1111
@eric-miller2129
eric-miller2129 / AspectRatioResize.js
Last active October 22, 2015 21:53
Aspect Ratio Resize to container
(function($){
'use strict';
var AspectResize = function(elem, options){
var _this = this;
_this.init = function(){
_this.containerWidth = elem.parent().outerWidth();
_this.containerHeight = elem.parent().outerHeight();
/********************************
******
******
****** This is the stupid simple slider.
****** @_ericmiller
******
******
*********************************/
(function($){
(function($){
'use strict';
var Accordion = function(elem){
var _this = this;
_this.elems = {
title: elem.find('.title'),
content: elem.find('.content')
};