A Pen by Ilya Pestov on CodePen.
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
// Geçen Zaman | |
function GecenZaman(gecenSure){ | |
if(gecenSure){ | |
var myDate = new Date(); | |
var $zaman = (myDate.getTime() /1000) - gecenSure; | |
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 | |
// Kullanacağımız array'yı belirleyelim | |
// Bu herhangi biri olabilir. | |
$array = [ | |
'settings' => [ | |
'public' => [ | |
'create' => true, | |
'update' => true, | |
'delete' => true, | |
], |
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
.filter("timeago", function () { | |
//time: the time | |
//local: compared to what time? default: now | |
//raw: wheter you want in a format of "5 minutes ago", or "5 minutes" | |
return function (time, local, raw) { | |
if (!time) return "never"; | |
if (!local) { | |
(local = Date.now()) | |
} |
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
/*** | |
Responsive Width | |
**/ | |
$screen-sm: 768px !default; | |
$screen-md: 992px !default; | |
$screen-lg: 1200px !default; | |
/** | |
Mixins | |
**/ | |
@mixin pd_mg($class,$size,$type) { |
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
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="utf-8"> | |
<meta http-equiv="X-UA-Compatible" content="IE=edge"> | |
<meta name="viewport" content="width=device-width, initial-scale=1"> | |
<title>Bootstrap 101 Template</title> | |
<!-- Bootstrap --> | |
<link href="css/bootstrap.min.css" rel="stylesheet"> |
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'; | |
var angApp = angular.module('MyApp', [ | |
'ui.highlight','ngSanitize' | |
]); | |
var MainController = function ($scope,$http) { | |
$scope.msg = "Atatürk, gençliğe hitabında, Nutuk'un felsefesi hakkında ipuçları vermektedir. |
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 | |
/*** | |
* Move to resources/views/welcome.blade.php resources/views/default/welcome.blade.php | |
*/ | |
$theme = "default"; | |
// Admin Views | |
function admin_view($view, $data = [], $mergeData = []){ | |
\View::addNamespace("admin",base_path("resources/admin")); |
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
private function myInarray($getArray = '',array $myArray = []){ | |
// $getArray'yı noktalarından ayıralım | |
$getArray = explode('.',$getArray); | |
// Sonra foreach ile listeleyelim | |
foreach($getArray as $key){ | |
// Eğer $myArray yok ise yada $myArray'da istediğimiz key yok ise | |
if (!is_array($myArray) || !array_key_exists($key, $myArray)) { | |
// Sonuç null olarak döner |
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 | |
/** | |
* Created by PhpStorm. | |
* User: ferdiunal | |
* Date: 01.04.2016 | |
* Time: 16:05 | |
*/ | |
namespace Libraries; |
OlderNewer