- compare HEAD with most recent release to determine new semver level (fundemental/breaking changes = bump major, new feature-detects/publically-exposed-util = bump minor, update to existing code (in non behavior changing way) = bump patch). Github compare view is handy here (e.g. https://github.com/Modernizr/Modernizr/compare/v3.3.1...master)
- update package.json version to new semver version
- run
git tag ${semver}
(e.g.git tag v3.4.0
), then push the tags (git push --tags
) - npm publish
- log into the modernizr.com server
cd ~/modernizr-neue
npm update && bower update
npm run deploy
pm2 restart 0
This file contains 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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<meta name="viewport" content="width=device-width"> | |
<title>JS Bin</title> | |
<style id="jsbin-css"> | |
body { | |
height: 100vh; | |
width: 100vw; |
This file contains 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
#Block the APNIC range of IP addresses - a common source of hacking attempts | |
sudo ipfw -q add deny src-ip 43.0.0.0/8 | |
sudo ipfw -q add deny src-ip 58.0.0.0/8 | |
sudo ipfw -q add deny src-ip 59.0.0.0/8 | |
sudo ipfw -q add deny src-ip 60.0.0.0/8 | |
sudo ipfw -q add deny src-ip 61.0.0.0/8 | |
sudo ipfw -q add deny src-ip 110.0.0.0/8 | |
sudo ipfw -q add deny src-ip 111.0.0.0/8 | |
sudo ipfw -q add deny src-ip 112.0.0.0/8 |
This file contains 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
+-o [1mAppleSmartBattery[0m <class AppleSmartBattery, id 0x100000257, registered, matched, active, busy 0 (0 ms), retain 6> | |
{ | |
"ExternalConnected" = No | |
"TimeRemaining" = 73 | |
"InstantTimeToEmpty" = 17 | |
"ExternalChargeCapable" = No | |
"FullPathUpdated" = 1493188334 | |
"CellVoltage" = (3475,3520,3516,0) | |
"Voltage" = 10511 | |
"BatteryInvalidWakeSeconds" = 30 |
This file contains 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
<!DOCTYPE HTML> | |
<html> | |
<head> | |
<title>Chrome Bug?</title> | |
<script> | |
function A() { | |
"use strict"; | |
B(); | |
} |
This file contains 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
source 'https://rubygems.org' | |
gem "temple", "0.6.5" | |
gem "opal" |
This file contains 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
Gem::Specification.new do |gem| | |
gem.name = 'OLD_RUBY_CGI_ESCAPE' | |
gem.version = '1.0.0' | |
gem.date = Date.today.to_s | |
gem.summary = "pure ruby HTML escaping extracted from the CGI module from Ruby <= 2.4" | |
gem.description = "extended description" | |
gem.authors = ['Nobuyoshi Nakada', 'Eric Hodel', 'Yui NARUSE', 'Kenta Murata', 'Zachary Scott', 'Patrick Kettner'] | |
gem.email = 'patrickkettner@gmail.com' |
This file contains 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
var browserslist = require('browserslist'); | |
var request = require('sync-request'); | |
var res = request('GET', 'https://saucelabs.com/rest/v1/info/browsers/webdriver'); | |
function lookup(requestedBrowsers, cb) { | |
var result = {}; | |
var sauce = JSON.parse(res.getBody().toString()) | |
//console.log(sauce); |
This file contains 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
// grab a reference to all scripts on the page, keep in mind this | |
// will only include all of the <script> elements that have been | |
// parsed up until this point | |
var scripts = document.getElementsByTagName('script'); | |
// cheat and use currentScript if it exists, otherwise grab the last | |
// script tag, which will be the current running script tag sense the | |
// getElements call can't see nodes in the future | |
var currentScript = document.currentScript || scripts[scripts.length - 1]; |
This file contains 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
http://codepen.io/patrickkettner/pen/pEzXEy |