Skip to content

Instantly share code, notes, and snippets.

View derekbtw's full-sized avatar
🌎
Internet explorer

Derek Bytheway derekbtw

🌎
Internet explorer
View GitHub Profile
@derekbtw
derekbtw / .htaccess__no-ssl
Created December 31, 2016 08:47
Don't force SSL in specific directory
#Place the following inside the directory you don't want SSL on
RewriteCond %{HTTPS} on
RewriteCond %{REQUEST_URI} ^/
RewriteRule (.*) http://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
@derekbtw
derekbtw / css-commenting.css
Last active January 5, 2017 08:05
CSS Header Comment Formats
/*
┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┓
┃ Easily create more unicode tables using the following resources: ┃
┡━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┩
│ http://unicode.org/cldr/utility/list-unicodeset.jsp?a=%5B%E2%94%80-%E2%95%BF%EF%BF%A8%5D │
├──────────────────────────────────────────────────────────────────────────────────────────┤
│ http://apps.timwhitlock.info/emoji/tables/unicode │
└──────────────────────────────────────────────────────────────────────────────────────────┘
┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┓
@derekbtw
derekbtw / 0_reuse_code.js
Created January 3, 2017 04:40
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
@derekbtw
derekbtw / essentials.md
Created January 23, 2017 17:00
Essential Software

Software Essentials


Ruby:

  • SASS $ gem install sass
  • Bourbon $ gem install bourbon
  • Neat $ gem install neat
  • Bitters $ gem install bitters
@derekbtw
derekbtw / bootstrap-jumpstart-server.bat
Created February 15, 2017 12:15
Place this batch file in any directory and run it to: create a new project, start a browser-sync server, create and listen to a scss file
cd projects
@echo off
COLOR 0A
set /p dname= New project name:
git clone https://github.com/BlackrockDigital/startbootstrap-bare.git %dname%
cd %dname%
mkdir scss
cd scss
echo //main > main.scss
@derekbtw
derekbtw / bootstrap-carousel-swipe.js
Created March 27, 2017 22:56
Add swipe functionality to Bootstrap's carousel slider
@derekbtw
derekbtw / jsbin-installation.md
Created April 1, 2017 03:19
Make JS Bin Work Again

$ wget https://registry.npmjs.org/jsbin/-/jsbin-3.11.23.tgz
$ tar xvfz jsbin-3.11.23.tgz
$ cd package
$ sed -i '/ "sqlite3": "~2.2.0",/c\ "sqlite3": "*",' package.json
$ npm install --build-from-source -g
$ cd C:\Users\user\AppData\Roaming\npm\node_modules\jsbin && npm install express
$ cd ./node_modules/express && npm install connect

@derekbtw
derekbtw / create-sass-project.sh
Last active April 14, 2017 22:29
Start new SASS Starter Project
#!/bin/bash -
#title :Create Sass Project
#description :Start a new Sass project using github.com/scotch-io/less-or-sass-starter.git
#backtitle :Sass Starter
#author :derekbtw
#version :1.0
#==============================================================================
today=$(date +%m%d%Y)
div=======================================
@derekbtw
derekbtw / create-script.sh
Created April 14, 2017 14:37
Bash script to create a header for bash scripts
#!/bin/bash -
#title :mkscript.sh
#description :This script will make a header for a bash script.
#author :bgw
#date :20111101
#version :0.4
#usage :bash mkscript.sh
#notes :Install Vim and Emacs to use this script.
#bash_version :4.1.5(1)-release
#==============================================================================
@derekbtw
derekbtw / package.json
Last active July 1, 2021 07:42
polymer live reload
// npm install browser-sync --save-dev
// npm run dev
{
"name": "polymer-starter-kit",
"license": "BSD-3-Clause",
"devDependencies": {
"browser-sync": "^2.18.8",
"eslint": "^3.12.0",
"eslint-config-google": "^0.7.1",
"eslint-plugin-html": "^1.7.0"