Tutorial for AngularJs (and things to come by)
Don't forget to do a 'bower install' after checkout. (Read this for more: http://code-like-a-poem.blogspot.in/2013/04/angularjs-tutorial-2-structuring-and.html)
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>Polling Example</title> | |
<style type="text/css"> | |
.title, .result { | |
display: inline-block; | |
padding: 10px; | |
background-color: #fffeee; | |
} |
<!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> |
#!/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!"); |
Tutorial for AngularJs (and things to come by)
Don't forget to do a 'bower install' after checkout. (Read this for more: http://code-like-a-poem.blogspot.in/2013/04/angularjs-tutorial-2-structuring-and.html)
'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 %> - ' + |
<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"> |
angular.module("uploaderComponent", []) | |
.directive "fileupload", -> | |
restrict: "A" | |
scope: | |
done: "&" | |
progress: "&" | |
fail: "&" | |
uploadurl: "=" | |
link: (scope, elem, attrs) -> |
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'; | |
} | |
} |