Skip to content

Instantly share code, notes, and snippets.

View puginabox's full-sized avatar

Griffin Byron puginabox

View GitHub Profile
@puginabox
puginabox / bower.json
Last active August 29, 2015 14:10
bower.json
{
"name": "Angular-Gulp-Schaffolding",
"version": "0.0.1",
"description": "Angular-Gulp-Schaffolding",
"authors": [
"Griffin Byron"
],
"license": "MIT",
"homepage": "https://github.com/puginabox/",
"ignore": [
@puginabox
puginabox / package.json
Last active August 29, 2015 14:10
Grunt Package manager
{
"name": "grunt-setup",
"version": "0.0.0",
"description": "Grunt Setup",
"main": "main.js",
"scripts": {
"test": "testing"
},
"repository": {
"type": "git",
@puginabox
puginabox / confib.rb
Created November 22, 2014 19:32
Compass/Sass config
http_path = "/"
css_dir = 'css'
sass_dir = 'dev/sass'
javascripts_dir = 'js'
# output_style = :compressed
output_style = :expanded
relative_assets = true
# environment = :development
@puginabox
puginabox / index.html
Last active August 29, 2015 14:10
index.html boilerplate for angularJS
<!DOCTYPE html>
<html lang="en" ng-app="myApp" ng-cloak>
<head>
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<!-- for IE Document Mode - must be at top of <head> to be cross-IE -->
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Xxx</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<!-- CEO upkeep-->
@puginabox
puginabox / package.json
Last active August 29, 2015 14:10
basic angular setup
{
"name": "angular-base",
"version": "0.0.0",
"description": "Grunt Setup",
"main": "gruntfile.js",
"scripts": {
"test": "testing"
},
"repository": {
"type": "git",
@puginabox
puginabox / popup.html
Created December 1, 2014 17:41
simple vanilla js popup
<head>
<script>
function poponload() {
testwindow = window.open("",
"mywindow1", "location=1,status=1,scrollbars=1,width=200,height=200");
testwindow.moveTo(50%, 50%);
}
</script>
</head>
@puginabox
puginabox / encapsulate.php
Last active August 29, 2015 14:10
Accessing Jquery within Drupal database nodes
<?php
drupal_add_js("
(function ($) {
// your cool moves in here…
})(jQuery);
// ','inline');
@puginabox
puginabox / alias.sh
Last active August 29, 2015 14:11
unix alias
alias showFiles='defaults write com.apple.finder AppleShowAllFiles YES; killall Finder /System/Library/CoreServices/Finder.app'
alias hideFiles='defaults write com.apple.finder AppleShowFiles NO; killall Finder /System/Library/CoreServices/Finder.app'
#alias composer='/usr/bin/composer/composer.phar'
alias bashed='cd ~/.bashrc.d'
alias sandbox='cd ~/Documents/SugarSync/Sites/sandbox'
alias gitx='/usr/local/bin/'
alias drush='/usr/bin/drush/drush'
alias drushinstall='git clone https://github.com/puginabox/drupal-installation.git && cd drupal-installation && drush dl -y --drupal-project-rename=newsite && mv siteinstall.make newsite && cd newsite && drush make -y siteinstall.make && drush site-install -y --db-url=mysql://root:Sunshine2@127.0.0.1:3306/koto --account-name=admin --account-pass=admin && drush en -y pathologic && drush en -y views && drush en -y pathauto && drush en -y devel && drush en -y token && drush en -y entityconnect && drush en -y ctools && drush en -y features && drush en -y tao && drush en
@puginabox
puginabox / mixins.scss
Created December 28, 2014 05:28
mixins
// _mixins
// ========
@mixin backgroundImage($image) {
background: url($image) no-repeat 50% 20% ;
-webkit-background-size: cover;
-moz-background-size: cover;
-o-background-size: cover;
background-size: cover;
-webkit-transition: all 0.3s ease-out;
touch README.md
git init
git add README.md
git commit -am "initial commit"
git remote add origin https://github.com/puginabox/batman.git
git push -u origin master