Hmm... I don't see any docs for 4.0 on https://webpack.js.org. I guess I'll just wing it.
All I need to do is npm i -D webpack@next
, right?
+ [email protected]
added 1 package, removed 20 packages and updated 4 packages in 13.081s
Cool! Ok...
<script type="text/javascript"> | |
function idleTimer() { | |
var t; | |
//window.onload = resetTimer; | |
window.onmousemove = resetTimer; // catches mouse movements | |
window.onmousedown = resetTimer; // catches mouse movements | |
window.onclick = resetTimer; // catches mouse clicks | |
window.onscroll = resetTimer; // catches scrolling | |
window.onkeypress = resetTimer; //catches keyboard actions |
data "http" "cloudflare_ipv4" { | |
url = "https://www.cloudflare.com/ips-v4" | |
} | |
output "cloudflare_ip" { | |
value = "${split("\n",chomp(data.http.cloudflare_ipv4.body))}" | |
} |
Hmm... I don't see any docs for 4.0 on https://webpack.js.org. I guess I'll just wing it.
All I need to do is npm i -D webpack@next
, right?
+ [email protected]
added 1 package, removed 20 packages and updated 4 packages in 13.081s
Cool! Ok...
function isValidRoutingNumber(routingNum) { | |
var ABA_CHECKSUM_CONSTANTS = [3, 7, 1]; | |
var ABA_CHECKSUM_DIVIDER = 10; | |
var ABA_LENGTH = 9; | |
var i = 0; | |
var checksum = 0; | |
if (isNaN(routingNum) || routingNum.length !== ABA_LENGTH) { | |
return false; | |
} |
There is an increasing count of applications which use Authy for two-factor authentication. However many users who aren't using Authy, have their own authenticator setup up already and do not wish to use two applications for generating passwords.
Since I use 1Password for all of my password storing/generating needs, I was looking for a solution to use Authy passwords on that. I couldn't find any completely working solutions, however I stumbled upon a gist by Brian Hartvigsen. His post had a neat code with it to generate QR codes (beware, through Google) for you to use on your favorite authenticator.
His method is to extract the secret keys using Authy's Google Chrome app via Developer Tools. If this was not possible, I guess people would be reverse engineering the Android app or something like that. But when I tried that code, nothing appeared on the screen. My gues
#!/bin/sh | |
VERSION=0.8.0.0 | |
BUILD_TYPE=debug | |
echo ============================ | |
echo Set version $VERSION | |
echo ============================ | |
TAG=$VERSION | |
python ./build/set_version.py $VERSION > ./src/version.h |
#!/bin/bash | |
# Idea and interface taken from https://github.com/macmade/host-manager | |
path="/etc/hosts" | |
addusage="Usage: `basename $0` -add host address" | |
remusage="Usage: `basename $0` -remove host" | |
case "$1" in | |
-add) | |
if [ $# -eq 3 ]; then | |
if [[ -n $(grep "^$3.*[^A-Za-z0-9\.]$2$" ${path}) ]]; then |
# Wes Floyd April 2015 | |
import sys | |
import requests | |
import json | |
import argparse | |
import pprint | |
import time | |
pp = pprint.PrettyPrinter(indent=4) |
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>Testing d3.js in Leaflet.js</title> | |
<link rel="stylesheet" href="leaflet.css"></link> | |
<script src="http://mbostock.github.com/d3/d3.v2.js?2.8.1"></script> | |
<script src="http://code.leafletjs.com/leaflet-0.3.1/leaflet.js"></script> | |
<style type="text/css"> | |
svg , g |
var injector = angular.element(document.body).injector(); |