Skip to content

Instantly share code, notes, and snippets.

@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?
"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(
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
<?php
Class Pay {
public function doPay($cart) {
return '112345';
}
}
<html>
<head>
<style type="text/css">
canvas {
border: solid 1px #000;
}
</style>
<script type="text/javascript">
@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/>
angular.module("uploaderComponent", [])
.directive "fileupload", ->
restrict: "A"
scope:
done: "&"
progress: "&"
fail: "&"
uploadurl: "="
link: (scope, elem, attrs) ->
<form class="form-horizontal">
<fieldset>
<legend>Lets upload something... (Along with some other data)</legend>
<div class="control-group">
<label class="control-label" for="firstName">Firstname</label>
<div class="controls">
<input type="text" id="firstName" ng-model='firstname' placeholder="Type your firstname">
</div>
</div>
<div class="control-group">
@sk8terboi87
sk8terboi87 / Gruntfile.js
Last active December 26, 2015 04:39
A automated thing + builder script using https://gruntjs.com! Does Coffee to html, Jade to Html Does livereload and compilation of above Finally, Able to build the finally compressed, uglified script for production usage (File mentioned below are just examples... will be fixed sooner ^^")
'use strict';
module.exports = function(grunt) {
// Project configuration.
grunt.initConfig({
// Metadata.
pkg: grunt.file.readJSON('build_package.json'),
banner: '/*! <%= pkg.title || pkg.name %> - v<%= pkg.version %> - ' +