A Pen by Will Pracht on CodePen.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div class="form"> | |
<h2>Multi Page Form (Pure CSS)</h2> | |
<p>Divide long forms, enable users to flick back and forward.</p> | |
<p>Use JS to validate form at the end of the stage and highlight tab(s) that contain(s) error.</p> | |
<input id="one" type="radio" name="stage" checked="checked" /> | |
<input id="two" type="radio" name="stage" /> | |
<input id="three" type="radio" name="stage" /> | |
<input id="four" type="radio" name="stage" /> | |
<input id="five" type="radio" name="stage" /> |
A Pen by Will Pracht on CodePen.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Import the RPi.GPIO and OS | |
import RPi.GPIO as GPIO | |
import os | |
import sys | |
import time | |
# GPIO port setup | |
GPIO.setmode(GPIO.BCM) | |
# Power switch: will send a shutdown message to the OS |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env node | |
'use strict'; | |
const chalk = require('chalk'); | |
const del = require('del'); | |
const fs = require('fs'); | |
const google = require('googleapis'); | |
const googleAuth = require('google-auth-library'); | |
const _ = require('lodash'); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# first: | |
lsbom -f -l -s -pf /var/db/receipts/org.nodejs.pkg.bom | while read f; do sudo rm /usr/local/${f}; done | |
sudo rm -rf /usr/local/lib/node /usr/local/lib/node_modules /var/db/receipts/org.nodejs.* | |
# To recap, the best way (I've found) to completely uninstall node + npm is to do the following: | |
# go to /usr/local/lib and delete any node and node_modules | |
cd /usr/local/lib | |
sudo rm -rf node* |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<snippet> | |
<content><![CDATA[ | |
(function () { | |
'use strict'; | |
${1:// body} | |
})(); | |
]]></content> | |
<!-- Optional: Set a tabTrigger to define how to trigger the snippet --> | |
<tabTrigger>iife</tabTrigger> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.center { | |
position: absolute; | |
left: 50%; | |
top: 50%; | |
transform: translate(-50%, -50%); | |
/* | |
Not even necessary really. | |
e.g. Height could be left out! |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cd /branches/myBranch | |
svn log --stop-on-copy | |
# note the revision number your branch at which your branch was created | |
cd /trunk | |
svn update | |
# note the revision number at which your trunk is at currently | |
svn merge -r[branchRevNum]:[trunkRevNum] svn+ssh://server/project/branch/myBranch | |
# resolve any conflicts |
NewerOlder