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
location ^~ /.(bzr|git|hg|svn|cvs) { | |
return 404; | |
} | |
location ^~ /node_modules { | |
return 404; | |
} | |
location ^~ /Gruntfile.js { | |
return 404; |
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 | |
$directories = ['application', 'library', 'database', '']; | |
define("CWD", dirname(__FILE__)); | |
echo '<h1>Parallel PHP Linter</h1>'; | |
$time_start = microtime(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
-- \set PROMPT1 '%n@%m %/%R%x%# ' | |
-- \set PROMPT2 '%n@%m %/%R%x%# ' | |
\set PROMPT1 '%M:%[%033[1;31m%]%>%[%033[0m%] %n@%[%033[1;32m%]%/%[%033[0m%]%R%#%x ' | |
\set PROMPT2 '%M %n@%[%033[1;32m%]%/%[%033[0m%]%R %# ' | |
-- \set AUTOCOMMIT off | |
\pset null '[null]' | |
\set COMP_KEYWORD_CASE upper | |
\set ON_ERROR_ROLLBACK interactive | |
-- \set VERBOSITY verbose | |
\set version 'SELECT version();' |
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 main | |
import( | |
"crypto/rand" | |
"crypto/tls" | |
"io/ioutil" | |
"log" | |
"net" | |
"net/http" | |
"compress/gzip" |
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 main | |
// (c) http://habrahabr.ru/users/pyra/ BSD license | |
import ( | |
// "encoding/json" | |
"fmt" | |
// "io" | |
"io/ioutil" | |
"log" | |
"time" |
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 main | |
type Task struct { | |
action func() | |
depends_on []*Task | |
} | |
func (t *Task) Run() { | |
if t.depends_on != nil { |
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
aol.com | |
anonymous.to | |
comcast.net | |
dispostable.com | |
everymail.net | |
everyone.net | |
flashmail.com | |
gmail.com | |
googlemail.com | |
guerillamail.com |
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
String.prototype.persianThousandsSeparator = function () { | |
var val = this.toString(); | |
var x = val.split('.'); | |
var x1 = x[0]; | |
var x2 = x.length > 1 ? '.' + x[1] : ''; | |
var rgx = /(\d+)(\d{3})/; | |
while (rgx.test(x1)) { | |
x1 = x1.replace(rgx, '$1' + '٬' + '$2'); | |
} | |
return x1 + x2; |