Skip to content

Instantly share code, notes, and snippets.

View aurelkurtula's full-sized avatar
🎯
Focusing

aurel kurtula aurelkurtula

🎯
Focusing
View GitHub Profile
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>JS Bin</title>
</head>
<body>
<script id="jsbin-javascript">
console.log("javascript is working");
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>JS Bin</title>
</head>
<body>
<script id="jsbin-javascript">
console.log("javascript is working")
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>JS Bin</title>
</head>
<body>
<script id="jsbin-javascript">
console.log("javascript is working")
@aurelkurtula
aurelkurtula / dabblet.css
Created December 2, 2013 14:52
Elegant layout
/**
* Elegant layout
*/
*{
margin: 0 ; padding: 0;
}
body{
background: url(http://static.tumblr.com/ajnepim/ERnmskide/pw_maze_white.png);
}
@aurelkurtula
aurelkurtula / gist:7165840
Created October 26, 2013 06:08
st:wordpress style temp
/*
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:
@aurelkurtula
aurelkurtula / app.js
Last active December 23, 2015 14:29
getting content from database and adding it into a multidimensional array
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 = [];
@aurelkurtula
aurelkurtula / gist:6648407
Created September 21, 2013 08:05
st:php: remove array
$posts = array(
array(
'title' => 'some title',
'description' => 'some description',
'url' => 'http://aurel'
),
array(
'title' => 'some time',
'description' => 'some one',
'url' => 'http://aurel'
@aurelkurtula
aurelkurtula / var.php
Last active December 23, 2015 07:39
laravel:passing_variables
<?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)
);
@aurelkurtula
aurelkurtula / dabblet.css
Created August 27, 2013 07:01
The first commented line is your dabblet’s title
/**
* The first commented line is your dabblet’s title
*/
<?php
$tags = array();
while($row = mysqli_fetch_array($result))
{
$row = $row['tags'];
$array = explode(',', $row);
foreach($array as $val) {
array_push($tags, $val);
}