Skip to content

Instantly share code, notes, and snippets.

@Zurc
Zurc / changing default checkboxes
Last active August 29, 2015 14:19
changing default checkboxes
input[type="checkbox"] {
-webkit-appearance: none;
background-color: $ghost;
border: 1px solid #cacece;
box-shadow: 0 1px 2px rgba(0,0,0,0.05), inset 0px -15px 10px -12px rgba(0,0,0,0.05);
padding: 5px;
border-radius: 3px;
display: inline-block;
position: relative;
outline: none;
@Zurc
Zurc / changing default checkboxes (foundation) sass
Created April 16, 2015 10:58
changing default checkboxes sass (with some foundation colors)
input[type="checkbox"] {
-webkit-appearance: none;
background-color: $ghost;
border: 1px solid #cacece;
box-shadow: 0 1px 2px rgba(0,0,0,0.05), inset 0px -15px 10px -12px rgba(0,0,0,0.05);
padding: 5px;
border-radius: 3px;
display: inline-block;
position: relative;
outline: none;
# ---------------------------------------------------------------------------
#
# Description: This file holds all my BASH configurations and aliases
#
# Sections:
# 1. Environment Configuration
# 2. Make Terminal Better (remapping defaults and adding functionality)
# 3. File and Folder Management
# 4. Searching
# 5. Process Management
<!DOCTYPE html>
<html ng-app="nameApp">
<head>
<script src="https://code.jquery.com/jquery.min.js"></script>
<link href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.4/css/bootstrap.min.css" rel="stylesheet" type="text/css" />
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.4/js/bootstrap.min.js"></script>
<script src="https://code.jquery.com/jquery-git.js"></script>
<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.3.2/angular.min.js"></script>
<meta charset="utf-8">
<title>Angular</title>
@Zurc
Zurc / node-and-npm-in-30-seconds.sh
Created September 28, 2015 14:12 — forked from isaacs/node-and-npm-in-30-seconds.sh
Use one of these techniques to install node and npm without having to sudo. Discussed in more detail at http://joyeur.com/2010/12/10/installing-node-and-npm/ Note: npm >=0.3 is *safer* when using sudo.
echo 'export PATH=$HOME/local/bin:$PATH' >> ~/.bashrc
. ~/.bashrc
mkdir ~/local
mkdir ~/node-latest-install
cd ~/node-latest-install
curl http://nodejs.org/dist/node-latest.tar.gz | tar xz --strip-components=1
./configure --prefix=~/local
make install # ok, fine, this step probably takes more than 30 seconds...
curl https://www.npmjs.org/install.sh | sh
@Zurc
Zurc / 0_reuse_code.js
Created November 9, 2016 16:29
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
@Zurc
Zurc / gist:ff3bc1336004e3296d5cb8cb233ea86b
Created March 28, 2017 20:46 — forked from paulallies/gist:0052fab554b14bbfa3ef
Remove node_modules from git repo
#add 'node_modules' to .gitignore file
git rm -r --cached node_modules
git commit -m 'Remove the now ignored directory node_modules'
git push origin master
@Zurc
Zurc / Mac OS X: Open in Visual Studio Code
Created November 21, 2017 09:57 — forked from tonysneed/Mac OS X: Open in Visual Studio Code
Add a command to Finder services in Mac OSX to open a folder in VS Code
- Open Automator
- File -> New -> Service
- Change "Service Receives" to "files or folders" in "Finder"
- Add a "Run Shell Script" action
- Change "Pass input" to "as arguments"
- Paste the following in the shell script box: open -n -b "com.microsoft.VSCode" --args "$*"
- Save it as something like "Open in Visual Studio Code"
// write ES2015 code and import modules from npm
// and then press "Execute" to run your program
const entityTypes = [
{ category: 'Root', initial: 'oe', icon: '', class: 'card-root' },
{ category: 'Client', initial: 'c', icon: 'fa fa-diamond', class: 'card-client' },
{ category: 'Site', initial: 's', icon: 'fa fa-map-marker', class: 'card-site' },
{ category: 'Device', initial: 'd', icon: 'fa fa-cubes', class: 'card-device' },
{ category: 'Load', initial: 'l', icon: 'fa fa-cube', class: 'card-load' },
{ category: 'Meter', initial: 'm', icon: 'fa fa-tachometer', class: 'card-meter' },
@Zurc
Zurc / Geolocation.getCurrentPosition
Created November 29, 2017 09:49
Geolocation Get Current Position
var options = {
enableHighAccuracy: true,
timeout: 5000,
maximumAge: 0
};
function success(pos) {
var crd = pos.coords;
console.log('Your current position is:');