Skip to content

Instantly share code, notes, and snippets.

@garybunofsky
garybunofsky / scanning-qr-code-data.json
Last active June 7, 2020 17:10
scanning-qr-code-data
{
"access_code": "12345",
"first_name": "first name of visitor",
"last_name": "last name of visitor",
"division": "name of division",
"datetime": "2010-08-03T03:00:00.000000",
"ryg_status": "Y",
"employee_id": 12345,
"badge_number": 12345,
"employee_type": "visitor"
find . -depth -name '* *' \
| while IFS= read -r f ; do mv -i "$f" "$(dirname "$f")/$(basename "$f"|tr -d [:space:])" ; done
/* globals localStorage */
const OktaAuth = require('@okta/okta-auth-js')
const authClient = new OktaAuth({url: 'https://dev-156391-admin.oktapreview.com'})
export default {
login (email, pass, cb) {
cb = arguments[arguments.length - 1]
if (localStorage.token) {
if (cb) cb(true)
this.onChange(true)
<script id="jsbin-javascript">
var user = {
first: 'Tony',
middle: 'The',
last: 'Tiger',
phone: '440-349-2943',
type: 'admin',
active: 1
}
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>JS Bin</title>
<style id="jsbin-css">
}
</style>
</head>
@garybunofsky
garybunofsky / index.html
Created January 2, 2018 15:24
Front End Web Development: Lesson 3, CSS the Right Way // source https://jsbin.com/tifahaz
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>Front End Web Development: Lesson 3, CSS the Right Way</title>
<style id="jsbin-css">
html {
font-family: sans-serif;
color:#333;
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>JS Bin</title>
<style id="jsbin-css">
nav {
display:flex;
background:#eaeaea;
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>JS Bin</title>
</head>
<body>
<script id="jsbin-javascript">
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>Eloquent Javascript: 04 Data Structures, Array to List</title>
</head>
<body>
<script id="jsbin-javascript">
@garybunofsky
garybunofsky / index.html
Created December 31, 2017 14:24
Eloquent Javascript: 04 Data Structures, Reverse an Array // source https://jsbin.com/qejuqik
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>Eloquent Javascript: 04 Data Structures, Reverse an Array</title>
</head>
<body>
<script id="jsbin-javascript">