View yesimbot.js
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
View reflex.js
// 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++) {
View nowToStr.js
(+new Date() + "").split('').map(function (num) {
return String.fromCharCode(97 + parseInt(num));
}).join('');
View amele.js
/*
* 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) {
View backbone.mw.js
/**
* @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') {
View 0_reuse_code.js
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
View backbone.middleware.js
/**
* @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'));
View flack.js
(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") {
View n3xt.js
(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 () {
};
View glClick.js
/**
* @author Eray Arslan
* @description backbone click to route trick implementation
*/
(function () {
'use strict';
angular.module('app')
.directive('glClick', glClick);