Skip to content

Instantly share code, notes, and snippets.

<!DOCTYPE html>
<html>
<head>
<title>Bad Parts</title>
<script src="shakespeare.js"></script>
<script src="wordsworth.js"></script>
<script type="text/javascript">
console.log(getPoem());
</script>
</head>
@sk8terboi87
sk8terboi87 / index.html
Last active May 11, 2022 06:37
JavaScript Web Worker Example: Fetching Random Content from Wikipedia using Web Workers. http://codelikeapoem.com/2017/03/web-workers-beginners-guide.html
<!DOCTYPE html>
<html>
<head>
<title>Polling Example</title>
<style type="text/css">
.title, .result {
display: inline-block;
padding: 10px;
background-color: #fffeee;
}
@sk8terboi87
sk8terboi87 / index.html
Last active August 29, 2015 14:05
HTML5 Canvas
CANVAS
========
http://www.comp.nus.edu.sg/~stevenha/visualization/training.html
Introduction
HTML5
what is canvas?
why canvas?
<http://www.sitepoint.com/html5-canvas-tutorial-introduction/>
<html>
<head>
<style type="text/css">
canvas {
border: solid 1px #000;
}
</style>
<script type="text/javascript">
<?php
Class Pay {
public function doPay($cart) {
return '112345';
}
}
http://haacked.com/archive/2009/07/14/law-of-demeter-dot-counting.aspx/
http://devblog.avdi.org/2011/07/05/demeter-its-not-just-a-good-idea-its-the-law/
> http://www.slideshare.net/jeresig/understanding-javascript-testing
>
>> http://www.slideshare.net/DragonBe/unit-testing-php-apps-with-php-unit
>> http://www.slideshare.net/nickokiss/unit-testing-best-practices
>> http://www.slideshare.net/RobertoCasadei/effective-unit-testing
"use strict"
var MINI = require('minified');
var _=MINI._, $=MINI.$, $$=MINI.$$, EE=MINI.EE, HTML=MINI.HTML;
function Pinger(request) {
this.request = request;
}
Pinger.prototype.makeRequest = function(url) {
var promiseData = this.request(
@sk8terboi87
sk8terboi87 / gist:9140041
Created February 21, 2014 18:19
interview quetsions
====================
Prescreening
---------------
Hi, how are you?
Provide a very short brief intro about yourself?
HTML
- HTML5 tags
- What's new HTML 5 DocType and Charset?
@sk8terboi87
sk8terboi87 / checker.sh
Created December 15, 2013 14:43
Check PHP And Its Related Modules
#!/bin/bash
php_version(){
echo `php -r '$version = phpversion();
echo sprintf("\033[34m%s\033[37m", "$version");'`
}
php_compability_check() {
echo `php -r ' if (version_compare(PHP_VERSION, "5.4", "<")) {
echo sprintf("\033[31m%s\033[37m", "Upgrade PHP!! PHP 5.4 or Greater!");