Each of these commands will run an ad hoc http static server in your current (or specified) directory, available at http://localhost:8000. Use this power wisely.
$ python -m SimpleHTTPServer 8000
/** | |
* @module backbone.mv | |
* @author Eray Arslan <relfishere@gmail.com> | |
* @data 11.01.2017 | |
*/ | |
(function (factory) { | |
if (typeof define === 'function' && define.amd) { | |
define(['backbone', 'underscore'], factory); | |
} else if (typeof exports === 'object') { |
/** | |
* @module backbone.middleware | |
* author eray <relfishere@gmail.com> | |
*/ | |
(function (factory) { | |
if (typeof define === 'function' && define.amd) { | |
define(['backbone', 'underscore'], factory); | |
} else if (typeof exports === 'object') { | |
module.exports = factory(require('backbone'), require('underscore')); |
(function () { | |
var root = this; | |
var flack = function (limit, blackList) { | |
this.blackList = typeof blackList === "undefined" ? [] : blackList; | |
this.limit = typeof limit === "undefined" ? 50 : parseInt(limit); | |
this.obj = {}; | |
}; | |
if (typeof exports !== "undefined") { |
(function () { | |
var n3xt = function (arr) { | |
var _slice = Array.prototype.slice; | |
(function _n(i) { | |
return i != arr.length ? (function () { | |
arr[i].apply(this, _slice | |
.call(arguments) | |
.concat(_n(i + 1).bind(this))); | |
}).bind(this) : function () { | |
}; |
/** | |
* @author Eray Arslan | |
* @description backbone click to route trick implementation | |
*/ | |
(function () { | |
'use strict'; | |
angular.module('app') | |
.directive('glClick', glClick); |
var isAlive = require("./is-alive"); | |
var Config = require("./config"); | |
var app = new isAlive(Config.mongodb) | |
.mail(Config) | |
.success(function (db) { | |
console.log("[IS-ALIVE] alive!"); | |
this.setStatus(false); | |
db.close(); | |
}) |
Each of these commands will run an ad hoc http static server in your current (or specified) directory, available at http://localhost:8000. Use this power wisely.
$ python -m SimpleHTTPServer 8000
curl --user-agent "Googlebot/2.1 (+http://www.google.com/bot.html)" -v http://thisistest.site/entry/953 | |
curl -o /dev/null -s -w "%{time_connect} + %{time_starttransfer} = %{time_total}\n" http://thisistest.site/entry/953 |
// reflex.js 0.0.1 | |
// (c) 2014 Eray Arslan | |
// reflex may be freely distributed under the MIT license. | |
// | |
// fast || smooth , calculation <3 javascript || node.js | |
var reflex = function() { | |
var params = []; | |
for(var i = 0; i < arguments.length; i++) { |
(function (global) { | |
"use strict"; | |
global._if = function () { | |
var args = arguments; | |
if (args.length == 3) { | |
(args[0] ? args[1] : args[2])(); | |
} else if (args.length == 4) { | |
args[0] ? setTimeout(args[1], args[3]) : setTimeout(args[2], args[3]); |