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 bot = require('node-telegram-bot-api'); | |
var job = require('cron').CronJob; | |
var env = process.env; | |
var token = env['YESIM_TOKEN']; | |
var target = env['YESIM_USER']; | |
$bot = new bot(token, { | |
polling: 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
// 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++) { |
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
(+new Date() + "").split('').map(function (num) { | |
return String.fromCharCode(97 + parseInt(num)); | |
}).join(''); |
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
/* | |
* amele.js | |
* Author : Eray 'maia' Arslan | |
* Email : relfishere@gmail.com | |
* Blog : http://eray.js.org/ | |
* This project is released under the MIT license. | |
*/ | |
(function (root, factory) { | |
if (typeof define === 'function' && define.amd) { |
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
/** | |
* @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') { |
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
/** | |
* @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')); |
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
(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") { |
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
(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 () { | |
}; |
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
/** | |
* @author Eray Arslan | |
* @description backbone click to route trick implementation | |
*/ | |
(function () { | |
'use strict'; | |
angular.module('app') | |
.directive('glClick', glClick); |
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 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(); | |
}) |