Skip to content

Instantly share code, notes, and snippets.

View haki9's full-sized avatar

Hakisaman haki9

View GitHub Profile
@georgebrata
georgebrata / index.html
Created May 30, 2016 08:45
Vanilla Javascript Spintax Function
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>JS Spintax Spinner</title>
</head>
<body>
<script>
var SPINTAX_PATTERN = /\{[^"\r\n\}]*\}/;
var spin = function (spun) {
@amatiasq
amatiasq / .jshintrc
Created September 3, 2014 08:28
JSHint config
{
// JSHint Default Configuration File (as on JSHint website)
// See http://jshint.com/docs/ for more details
"maxerr" : 50, // {int} Maximum error before stopping
// Enforcing
"bitwise" : true, // true: Prohibit bitwise operators (&, |, ^, etc.)
"camelcase" : true, // true: Identifiers must be in camelCase
"curly" : false, // true: Require {} for every new block or scope