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
const history = []; | |
const appMachine = Machine({ | |
id: 'App', | |
initial: 'Off', | |
states: { | |
Off: { | |
on: { | |
Start: 'CheckKillSwitch', | |
} |
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
TPS_cache/ | |
ignore.conf | |
.plastic/ | |
*.csproj | |
*.sln | |
.vs/ | |
*.DotSettings | |
/[Ll]ibrary/ | |
/[Tt]emp/ | |
/[Oo]bj/ |
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
# Disable EOL conversions by default | |
* -text | |
## Unity ## | |
*.cs diff=csharp text | |
*.cginc text | |
*.shader text | |
*.mat merge=unityyamlmerge |
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
# Unreal Engine file types. | |
*.uasset filter=lfs diff=lfs merge=lfs -text | |
*.umap filter=lfs diff=lfs merge=lfs -text | |
# Raw Content file types. | |
*.fbx filter=lfs diff=lfs merge=lfs -text | |
*.3ds filter=lfs diff=lfs merge=lfs -text | |
*.psd filter=lfs diff=lfs merge=lfs -text | |
*.png filter=lfs diff=lfs merge=lfs -text | |
*.mp3 filter=lfs diff=lfs merge=lfs -text | |
*.wav filter=lfs diff=lfs merge=lfs -text |
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
# Ignore all files by default, but scan all directories. | |
* | |
!*/ | |
# Do not ignore git files in the root of the repo. | |
!/.git* | |
# Do not ignore current project's `.uproject`. | |
!/*.uproject |
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 lang="en-US"> | |
<head> | |
<meta charset="utf-8"> | |
<meta name="google" content="notranslate" /> | |
<meta http-equiv="Content-Language" content="en_US" /> | |
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no"/> | |
<link rel="shortcut icon" href="favicon.ico"> | |
<title>My Website</title> |
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
#!/usr/bin/env ruby | |
require 'webrick' | |
class NonCachingFileHandler < WEBrick::HTTPServlet::FileHandler | |
def prevent_caching(res) | |
res['ETag'] = nil | |
res['Last-Modified'] = Time.now + 100**4 | |
res['Cache-Control'] = 'no-store, no-cache, must-revalidate, post-check=0, pre-check=0' | |
res['Pragma'] = 'no-cache' | |
res['Expires'] = Time.now - 100**4 |
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
/** | |
* Inject the Facebook API into the page if it hasn't already been loaded. Init if it hasn't already been | |
* initialized. Dispatch 'jsd:facebook-api-loaded' event on completion. | |
*/ | |
function loadFacebookAPI() { | |
if (!window.FB) { | |
console.log('loading facebook api'); |
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
<!-- simple HTML to test focus handler with --> | |
<input id="example" type="text" value="Select Me"/> |
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
/** | |
* @author John Starr Dewar | |
*/ | |
var textarea = $('textarea')[0]; | |
var $counter = $('#counter'); | |
var limit = 140; | |
$(textarea).keydown(function(event) { | |
switch (event.keyCode) { | |
case 8: |
NewerOlder