This file contains hidden or 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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<title>JS Bin</title> | |
</head> | |
<body> | |
<script id="jsbin-javascript"> | |
console.log("javascript is working"); |
This file contains hidden or 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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<title>JS Bin</title> | |
</head> | |
<body> | |
<script id="jsbin-javascript"> | |
console.log("javascript is working") |
This file contains hidden or 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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<title>JS Bin</title> | |
</head> | |
<body> | |
<script id="jsbin-javascript"> | |
console.log("javascript is working") |
This file contains hidden or 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
/** | |
* Elegant layout | |
*/ | |
*{ | |
margin: 0 ; padding: 0; | |
} | |
body{ | |
background: url(http://static.tumblr.com/ajnepim/ERnmskide/pw_maze_white.png); | |
} |
This file contains hidden or 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
/* | |
Theme Name: | |
Theme URI: | |
Author: Aurel Kurtula | |
Author URI: http://notes.aurelslab.co.uk | |
Description: | |
Version: 1.0 | |
License: GNU General Public License v2 or later | |
License URI: http://www.gnu.org/licenses/gpl-2.0.html | |
Tags: |
This file contains hidden or 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
App = Ember.Application.create(); | |
App.IndexRoute = Ember.Route.extend({ | |
model: function() { | |
return App.Item.all(); //get the item object and it all() function | |
} | |
}); | |
App.Item = Ember.Object.extend(); | |
App.Item.reopenClass({ | |
all: function() { | |
var links = []; |
This file contains hidden or 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
$posts = array( | |
array( | |
'title' => 'some title', | |
'description' => 'some description', | |
'url' => 'http://aurel' | |
), | |
array( | |
'title' => 'some time', | |
'description' => 'some one', | |
'url' => 'http://aurel' |
This file contains hidden or 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 | |
Route::get('/', function() //the point represents a slash. So index page is at views/home/index.blade.php | |
{ | |
$greeting = "From home page "; | |
$thing = "doing my thing"; | |
return View::make('home.index')->with( | |
array( | |
'greeting' => $greeting , | |
'thing' => $thing) | |
); |
This file contains hidden or 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
/** | |
* The first commented line is your dabblet’s title | |
*/ |
This file contains hidden or 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 | |
$tags = array(); | |
while($row = mysqli_fetch_array($result)) | |
{ | |
$row = $row['tags']; | |
$array = explode(',', $row); | |
foreach($array as $val) { | |
array_push($tags, $val); | |
} |