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 userId; | |
var query = connection.query('INSERT INTO mydb2.User SET ?', account, function(err, result) { | |
console.log('Created account with id: ' + result.insertId); | |
userId = result.insertId; | |
}); |
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://regexr.com/38pvh |
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 rwhndlr; | |
function SayThanks(id, s, e) { | |
$.ajax({ | |
type: "POST", | |
url: '/util.php', | |
data: 'module=1&code=clean&act=say_thanks&secure=' + s + '&torrent_id=' + id, | |
dataType: "json", | |
success: function (obj) { | |
if (!obj.error) { |
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 PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> | |
<html> | |
<head> | |
<title></title> | |
</head> | |
<body> | |
<div> | |
<h1>Игра престолов (Game of Thrones)</h1><br> |
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
package com; | |
import com.entities.*; | |
import com.utils.ListingAnalyzer; | |
import com.utils.TextLoader; | |
import com.utils.TextParser; | |
import java.util.ArrayList; | |
import java.util.List; | |
import java.util.regex.Matcher; |
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
bindReady( | |
function(){ | |
var Win1251 = | |
{ | |
0x0: 0x0, | |
0x1: 0x1, | |
0x2: 0x2, | |
0x3: 0x3, | |
0x4: 0x4, |
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
// UTF-8 encode / decode by Johan Sundstr?m | |
function encode_utf8( s ) | |
{ | |
return unescape( encodeURIComponent( s ) ); | |
} | |
function decode_utf8( s ) | |
{ | |
return decodeURIComponent( escape( s ) ); | |
} |
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 Utf8 = { | |
// public method for url encoding | |
encode : function (string) { | |
string = string.replace(/rn/g,"n"); | |
var utftext = ""; | |
for (var n = 0; n < string.length; n++) { | |
var c = string.charCodeAt(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
[15783] 17 Apr 00:41:37.299 # Warning: no config file specified, using the default config. In order to specify a config file use redis-server /path/to/redis.conf | |
[15783] 17 Apr 00:41:37.301 # You requested maxclients of 10000 requiring at least 10032 max file descriptors. | |
[15783] 17 Apr 00:41:37.301 # Redis can't set maximum open files to 10032 because of OS error: Operation not permitted. | |
[15783] 17 Apr 00:41:37.301 # Current maximum open files is 1024. maxclients has been reduced to 4064 to compensate for low ulimit. If you need higher maxclients increase 'ulimit -n'. | |
[15783] 17 Apr 00:41:37.301 # Creating Server TCP listening socket *:6379: bind: Address already in use |
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
# Path to your oh-my-fish. | |
set fish_path $HOME/.oh-my-fish | |
# Theme | |
set fish_theme bobthefish | |
# set fish_theme agnoster | |
# Which plugins would you like to load? (plugins can be found in ~/.oh-my-fish/plugins/*) | |
# Custom plugins may be added to ~/.oh-my-fish/custom/plugins/ | |
# Example format: set fish_plugins autojump bundler |
NewerOlder