Loving impossible geometry designs at the moment.
Forked from Marcus Hall's Pen Penrose Triangle.
A Pen by Ryan W Moore on CodePen.
Loving impossible geometry designs at the moment.
Forked from Marcus Hall's Pen Penrose Triangle.
A Pen by Ryan W Moore on CodePen.
// Load the TCP Library | |
net = require('net'); | |
// Keep track of the chat clients | |
var clients = []; | |
// Start a TCP Server | |
net.createServer(function (socket) { | |
// Identify this client |
// I. Comparison Operators: | |
if ( a == b ) {... // == Equality | |
if ( a != b ) {... // != Not Equal to | |
if ( a === b ) {... // === Strictly Equal to | |
if ( a !== b ) {... // !== Not Strictly Equal to | |
if ( a > b ) {... // > Greater Than | |
if ( a < b ) {... // < Less Than | |
if ( a >= b ) {... // >= Greater Than, or Equal to | |
if ( a <= b ) {... // <= Less Than, or Equal to |
var foo = 10; | |
var bar = 20; | |
if (foo < bar ) { | |
//console.log("foo is less than bar"); | |
//console.log("and here's a second message"); | |
//console.log("and here's a third message"); | |
//console.log(foo); | |
//console.log(foo,bar); | |
//console.debug("foo is less than bar"); |
/* | |
get window height | |
get window width | |
calculate area | |
store area | |
do calculation | |
check value | |
output message | |
get image position | |
calculate new value |
var singleValue; | |
singleValue = 99; | |
var multipleValues = []; | |
multipleValues[0] = 50; | |
multipleValues[1] = 60; | |
mulitpleValues[2] = "Mouse"; | |
console.log(multipleValues[2]); // Mouse |
// OBJECTS IN JAVASCRIPT: | |
// An Object is a container for data and behavior | |
// A name for variables and functions: | |
// THUSLY: | |
var playerName = "Fred"; | |
var playerScore = 10000; | |
var playerRank = 1; |
int[][] result; | |
float t, c; | |
float ease(float p) { | |
return 3*p*p - 2*p*p*p; | |
} | |
float ease(float p, float g) { | |
if (p < 0.5) | |
return 0.5 * pow(2*p, g); |
<?php | |
/* | |
Name - templated.php | |
Author - Shafiq Mustapa ([email protected]) | |
Usage - php templated.php | |
Stumble this upon site (http://templated.co)that offer over 800+ HTML5 + CSS + Responsive. | |
This php script will download the file automatically. For now, the page is now 7. | |
Tools |
// ---- | |
// Sass (v3.4.21) | |
// Compass (v1.0.3) | |
// Bourbon (v4.2.6) | |
// ---- | |
@import "bourbon/bourbon" | |
$color-yellow: #fffe99 | |
$color-green: #b6feb7 |