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
// example using the raf module from npm. try changing some values! | |
var $ = require("jquery"); | |
// when using cherrytree you need to create the router, many routes | |
// and some location implementation. The HistoryLocation keeps router | |
// state in sync with browser's address bar. | |
var Router = require("cherrytree"); | |
var Route = require("cherrytree/route"); | |
var HistoryLocation = require("cherrytree/locations/history"); |
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 callback = []; | |
for(var i =0; i < 5; i++) { | |
callback.push( ( i => { | |
return () => { | |
console.log(i) | |
} | |
})(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
defmodule Loop do | |
def printer([]) do | |
[] | |
end | |
def printer(list) do | |
# len = length list | |
# IO.puts list? | |
# if length(list) > 0 do |
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 | |
namespace App; | |
use Illuminate\Foundation\Auth\User as Authenticatable; | |
class User extends Authenticatable | |
{ | |
/** | |
* The attributes that are mass assignable. |
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> | |
<head> | |
<meta charset="utf-8"> | |
<meta name="viewport" content="width=device-width"> | |
<title>JS Bin</title> | |
<script src="http://d3js.org/d3.v3.min.js"></script> | |
<script src="http://dimplejs.org/dist/dimple.v2.1.6.min.js"></script> | |
<style id="jsbin-css"> | |
.dimple-example { |
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
{ | |
"npm:bootstrap@4.0.0-alpha.2": { | |
"files": [ "dist", "fonts", "js", "sass", "package.json" ], | |
"main": "js/bootstrap", | |
"shim": { | |
"js/bootstrap": { | |
"deps": [ "jquery" ], "exports": "$" | |
}, | |
"deps": ["thether"], |
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 p1 = new Promise((resolve, reject) => { | |
setTimeout(resolve, 1000, "one"); | |
}); | |
var p2 = new Promise((resolve, reject) => { | |
setTimeout(resolve, 2000, "two"); | |
}); | |
var p3 = new Promise((resolve, reject) => { | |
setTimeout(resolve, 3000, "three"); | |
}); | |
var p4 = new Promise((resolve, reject) => { |
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 | |
namespace App; | |
use Illuminate\Database\Eloquent\Model; | |
class Article extends Model | |
{ | |
protected $fillable = ['name', 'content']; |
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 | |
namespace App; | |
use Illuminate\Database\Eloquent\Model; | |
class Article extends Model | |
{ | |
protected $fillable = ['name', 'content']; |
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 | |
namespace App; | |
use Illuminate\Database\Eloquent\Model; | |
class Article extends Model | |
{ | |
protected $fillable = ['name', 'content']; |
OlderNewer