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 getTickets(){ | |
var tickets = [] | |
$('.bingo_ticket').each(function () { | |
var $ticket = $(this) | |
var numbers = [] | |
$ticket.find('.numbers td').each(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
{ | |
"Command": "PrintCheck", | |
"SignCalculation": "Сoming", | |
"Key": "BB720A776848", | |
"IP": "192.168.8.250", | |
"Port": "7777", | |
"Protocol": "TCP", | |
"MainData": [{ | |
"Cashier": "TEST T.T" | |
}], |
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 waterfall (fns = []) { | |
return async (...args) => { | |
return fns.reduce((p, fn) => p.then(args => fn.apply(this, args)), Promise.resolve.call(this, args)) | |
} | |
} |
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
grep "05/Dec" /var/log/nginx/access.log | grep GET | cut -d[ -f2 | cut -d] -f1 | awk -F: '{print $2":00"}' | sort -n | uniq -c |
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
global.app_require = function(name) { | |
return require(__dirname + '/' + name); | |
} | |
var fs = require('fs'), | |
config = app_require('config'), | |
common = app_require('utils/common'); |
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
//http://www.antartica.cl/antartica/servlet/LibroServlet?action=searchLibros&busqueda=shirley | |
var host = 'http://www.antartica.cl'; | |
var uri = '/antartica/servlet/LibroServlet?action=searchLibros&busqueda='; | |
var url = host + uri; | |
var cheerio = require('cheerio'); | |
var utils = require('./utils'); | |
var debug = require('debug')('bs:antartica.cl'); | |
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 Webmis\Controllers\Rls; | |
// use \Propel; | |
// use \PDO; | |
// use \BasePeer; | |
// use \Criteria; | |
use Silex\Application; | |
use Symfony\Component\HttpFoundation\Request; | |
// use Webmis\Models\DrugComponentQuery; |
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 factorial(n) { | |
function recur(n, result) { | |
if (n == 0) { | |
throw result; | |
} else { | |
recur(n-1, result*n); | |
} | |
} | |
try { | |
recur(n, n); |
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 | |
$parent = isset($parent) ? $parent : 0;//родительская папка | |
$published = isset($published) ? $published : 0;//публиковать? | |
$hidemenu = isset($hidemenu) ? $hidemenu : 0;//показывать в меню? | |
$template = isset($template) ? $template : 0;//ид нужного шаблона | |
//настройки транслитерации | |
if (!isset ($plugin_dir) ) { $plugin_dir = 'transalias'; } | |
if (!isset ($plugin_path) ) { $plugin_path = $modx->config['base_path'].'assets/plugins/'.$plugin_dir; } | |
if (!isset ($table_name)) { $table_name = 'russian'; } |
NewerOlder