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
{ | |
init: function(elevators, floors) { | |
_.each(elevators, function(elevator) { | |
elevator.on("idle", function() { | |
elevator.goToFloor(0); | |
}); | |
elevator.on("floor_button_pressed", function(floorNum) { | |
elevator.goToFloor(floorNum); | |
}) |
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
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | |
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | |
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | |
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | |
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | |
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | |
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | |
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | |
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
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
IIIIIIIIII?~7====================================================================================================+=I~::: | |
I7777IIIII$===============================================================================+==================+========8~ | |
++?I7IIII+=+========::~================================+=======+======+=====+===========OO+=======+===+=++======++=+==== | |
=??I7777=+======:::::::=======+=====+=+=====+++++=++==+++++======+++++++=++==+=+=++++++O=+=+++++++++++++++++++++==++++== | |
++?77$=+==+===+::::::::===++++++++++++++++==+++++++++++++==++++++++=+++++++=++++++++++++==+++==++++++++++++++++++++++++= | |
+==+7+++======::::::::==++++++++++++++++++++++++=++=++++==+++=++++++++++++++++++++++=?.,87++?++++++++++++++++++++++++=++ | |
==+=+++=+=+==:::::::====++++=+=++++++++++++=+=+++++++++++++++==++++==+++++=+++++++++Z,,+..+=++++++++++++++++++++++++++++ | |
+Z++++++::=++::::~=+=+++++++++++++++++=+++=+=O$+::::8:~::~::::::~I8I=+++++++++++++++=+++...Z++++++++++++++++++++++++++++ | |
=+++++++=+++++=++++=+++++++++++++++++=+8:::::::::::I::: |
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
MMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM | |
MMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM | |
MMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM | |
MMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM | |
MMMMMMMMMMMMMMMMMWWMMMMMMMMMMMMMMMMMMMMMMMNK0XWMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM | |
MMMMMMMMMMMMMMW0occdKWMMMMMMMMMMMMMMMMMMNk:,';dXMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM | |
MMMMMMMMMMMMMNd,,cc,,dNMMMMMMMMMMMMMMMW0c':od:.cKMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM | |
MMMMMMMMMMMMXc':xkkd:':OWMMMMMMMMMMMMNx,,okkkxc':0WMMMMMWNK00OkxddoooooodxkO0KXWMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM | |
MMMMMMMMMMMKc.cxkkkkko;,cooooooooolll:,:xkkkkkkl',x0kdol |
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
-- | |
-- Name: Relationships; Type: TABLE; Schema: parties; Owner: postgres; Tablespace: | |
-- | |
CREATE TABLE "Relationships" ( | |
id integer NOT NULL, | |
relationshiptype_id integer, | |
roletype_id integer, | |
lower_party_id integer, | |
upper_party_id integer, |
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
<?php | |
// ..... | |
elseif ( preg_match( '/(time|timestamp)/', $type ) ) | |
{ | |
if ( preg_match( '/([0-2]?[0-9]\:[0-5][0-9])/', $value ) ) | |
{ | |
// if time entered is in the form of a simple string | |
// hh:mm | |
$timesplit = preg_split( '/\:/', $value ); | |
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
<?php | |
// ...... | |
$value = $this->_ExcelData->sheets[ 0 ][ 'cells' ][ $i ][ $j ]; | |
$type = $this->_TableField[ $j - 1 ][ 'type' ]; | |
// ...... | |
elseif ( preg_match( '/(date|datetime|timestamp)/', $type ) ) | |
{ | |
// date verification assume dd-mm-yyyy format | |
if ( preg_match( '/[0-9]{1,2}(\-|\/)[0-9]{1,2}(\-|\/)[0-9]{2,4}/', $value ) ) | |
{ |
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
// | |
// main.c | |
// optimize | |
// | |
// Created by Rodrigo Basa on 2014-05-29. | |
// Copyright (c) 2014 Rodrigo Basa. All rights reserved. | |
// | |
#include <stdio.h> | |
#include <stdlib.h> |
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
// | |
// main.c | |
// optimize | |
// | |
// Created by Rodrigo Basa on 2014-05-29. | |
// Copyright (c) 2014 Rodrigo Basa. All rights reserved. | |
// | |
#include <stdio.h> | |
#include <stdlib.h> |
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
// all input data validated | |
// w: boolean | |
// x: int age | |
// z: 'M' or 'F' | |
#define true 1 | |
#define false 0 | |
if ( w == true ) { | |
if ( z == "M" ) { | |
if ( x >= 20 && x <= 65 ) { |
NewerOlder