Skip to content

Instantly share code, notes, and snippets.

Avatar

Tom Yeoman TomYeoman

View GitHub Profile
@TomYeoman
TomYeoman / gist:cecdccb06e36249fffa0f799a31a56c2
Created May 1, 2019
VS code settings.json for typescript
View gist:cecdccb06e36249fffa0f799a31a56c2
/**
----- Linting configurations
*/
// Prevent editor formatting on save for certain file types
"editor.formatOnSave": true,
"[javascript]": {
"editor.formatOnSave": false,
},
"[typescript]": {
"editor.formatOnSave": false,
@TomYeoman
TomYeoman / gist:3537e32e29da5a4a21e3fa3d3a5cac34
Created May 1, 2019
VS code settings.json for typescript
View gist:3537e32e29da5a4a21e3fa3d3a5cac34
/**
----- Linting configurations
*/
// Prevent editor formatting on save for certain file types
"editor.formatOnSave": true,
"[javascript]": {
"editor.formatOnSave": false,
},
"[typescript]": {
"editor.formatOnSave": false,
@TomYeoman
TomYeoman / index.html
Created Jun 14, 2016 — forked from anonymous/index.html
Simple TODO (Reducer + Tests) // source http://jsbin.com/sixuzoy
View index.html
<!DOCTYPE html>
<html>
<head>
<title>Simple TODO (Reducer + Tests)</title>
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/redux/3.5.2/redux.js"></script>
<script src="https://fb.me/react-15.1.0.js"></script>
<script src="https://fb.me/react-dom-15.1.0.js"></script>
<script src="http://wzrd.in/standalone/expect@latest"></script>
<script src="http://wzrd.in/standalone/deep-freeze@latest"></script>
<meta charset="utf-8">
View objectMutation.js
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Avoiding object mutations</title>
<script src="http://wzrd.in/standalone/expect@latest"></script>
<script src="http://wzrd.in/standalone/deep-freeze@latest"></script>
</head>
<body>
@TomYeoman
TomYeoman / index.html
Created Jun 13, 2016 — forked from anonymous/index.html
Avoiding mutations // source http://jsbin.com/fagede
View index.html
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Avoiding object mutations</title>
<script src="http://wzrd.in/standalone/expect@latest"></script>
<script src="http://wzrd.in/standalone/deep-freeze@latest"></script>
</head>
<body>
View index.html
<!DOCTYPE html>
<html>
<head>
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/redux/3.5.2/redux.js"></script>
<script src="https://fb.me/react-15.1.0.js"></script>
<script src="https://fb.me/react-dom-15.1.0.js"></script>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>JS Bin</title>
</head>
View adventofcode_day4.js
// MD5 hash puzzle test
function findHash(){
var secretKey = "iwrupvqb";
var tempKey = "";
var solution = "";
var solutionFound = false;
for (var i = 0; i < 2000000; i++){