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
<style> | |
#myCanvas{ | |
width: 100%; | |
height: 100%; | |
} | |
</style> | |
<canvas id="myCanvas"></canvas> | |
<script> | |
var c = document.getElementById("myCanvas"); | |
var ctx = c.getContext("2d"); |
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"> | |
<head> | |
<meta charset="UTF-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
<title>Document</title> | |
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.5.0/css/bootstrap.min.css"> | |
</head> | |
<body> | |
<div id="app" class="row"></div> |
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
Show hidden characters
{ | |
"presets": ["env", "react"] | |
} |
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
set encoding=utf-8 | |
syntax on | |
set nu | |
set laststatus=2 | |
set showmode | |
set 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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8" /> | |
<title>★React Boilerplate★</title> | |
<script src="//cdnjs.cloudflare.com/ajax/libs/react/15.2.1/react.js"></script> | |
<script src="//cdnjs.cloudflare.com/ajax/libs/react/15.2.1/react-dom.js"></script> | |
<script src="//cdnjs.cloudflare.com/ajax/libs/babel-core/5.8.34/browser.min.js"></script> | |
<script src="//cdnjs.cloudflare.com/ajax/libs/jquery/2.2.0/jquery.min.js"></script> | |
<script src="//cdnjs.cloudflare.com/ajax/libs/remarkable/1.6.2/remarkable.min.js"></script> |
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
var results = new Array(); | |
var l = console.log.bind(console) | |
//Task | |
results.push(verify("---(++++)----"));// -> true | |
results.push(verify(""));// -> true | |
results.push(verify("before ( middle []) after "));// -> false | |
results.push(verify(") ("));// -> false | |
results.push(verify("} {"));// -> true | |
results.push(verify("<( >)"));// -> false |
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
(function( $ ) {//my scope | |
var _obj = {},//container for plugin | |
_appName = 'MYDEFAULTPLUGINNAME';//will be visible in global scope, use unique name | |
_obj[_appName] = window[_appName] = new function(){//exposing to global scope | |
var _ = {//private methods | |
defaults:{}, | |
settings:{}, | |
l:function(severity, message) { | |
var _args = Array.prototype.slice.apply(arguments); | |
console[severity](_appName + ' :: ' + _args.slice(1, 2), _args.slice(2)); |
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
var page = require('webpage').create(); | |
page.onConsoleMessage = function (msg) { | |
// console.log(msg); | |
}; | |
var items = [ | |
{name:'espn',url:'http://espn.go.com/nfl/'}, | |
{name:'google',url:'http://google.com/'}, | |
];// array with items. | |
(function recursion(){ | |
if(items.length == 0) phantom.exit(); |