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
Router::add('/test', function(){ | |
echo "testing!'"; | |
}); | |
Router::add('/profile', function($id){ | |
return [ | |
'class' => '\App\Builders\ProfileBuilder', | |
'method' => 'displayProfile' | |
]; |
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 | |
Router::add('/test', function(){ | |
echo "testing!'"; | |
}); | |
Router::add('/profile', function($id){ | |
return [ | |
'class' => '\App\Builders\ProfileBuilder', |
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
Router::add('/(profile)/<:num>/<:doge>',function(){ | |
echo "/test!"; | |
})->alias([ | |
'/(profile)' => 'GET' | |
]); | |
Router::alternatives()->add('<:num>', '(\\d+)'); | |
Router::alternatives()->add('<:doge>', '(woof)'); |
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
<html> | |
<body> | |
@section('sidebar') | |
This is the master sidebar. | |
@show | |
<div class="container"> | |
@yield('content') | |
</div> | |
</body> |
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
var arr = [4,15,5,6,23,6,7,34,36]; | |
arr.sort(); | |
console.log(arr); | |
arr.push(16); | |
arr.sort(); |
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
/* | |
* File: main.cpp | |
* Author: maht0rz | |
* | |
* Created on January 9, 2015, 11:27 PM | |
*/ | |
#include <iostream> | |
#include <list> |
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
/* | |
* File: main.cpp | |
* Author: maht0rz | |
* | |
* Created on January 9, 2015, 11:27 PM | |
*/ | |
#include <iostream> | |
#include <list> |
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
/* | |
* File: main.cpp | |
* Author: maht0rz | |
* | |
* Created on January 9, 2015, 11:27 PM | |
*/ | |
#include <iostream> | |
#include <list> | |
#include <functional> |
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
'use strict'; | |
angular.module('proofOfConcept') | |
.controller('MainCtrl', function ($scope, LineFactory) { | |
var LineFactory = function(canvas, context){ | |
var Line = function(from, to){ | |
var coords = { |
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
var LineFactory = function(canvas, context){ | |
var Line = function(from, to){ | |
var coords = { | |
from: from, | |
to: to | |
} | |
this.drawOperationService = function(){ |
OlderNewer