This file contains hidden or 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
{"lastUpload":"2021-07-03T02:26:55.928Z","extensionVersion":"v3.4.3"} |
This file contains hidden or 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
{"tags":[],"lastModified":1517901577516} |
This file contains hidden or 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
geek |
This file contains hidden or 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
server { | |
# Internal image resizing server. | |
server_name localhost; | |
listen 8888; | |
location /resize { | |
alias /var/www/app/current/public/imgs; | |
image_filter resize $arg_width $arg_height; | |
image_filter_jpeg_quality 75; | |
allow 127.0.0.0/8; |
This file contains hidden or 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
data:text/html;charset=UTF-8, | |
<html> | |
<head> | |
<title>editor</title> | |
<style> | |
body { | |
display: flex; | |
margin: 0; | |
} | |
#viewer, |
This file contains hidden or 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($) { | |
$.fn.extend({ | |
ajaxForm: function(){ | |
var action = this.attr('action'); | |
var method = this.attr('method'); | |
var d = $.Deferred(); | |
this.on('submit', function(){ | |
fetch(action, { | |
method: method, | |
credentials: 'same-origin', |
This file contains hidden or 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
require 'app' | |
.factory 'http', [ | |
'$http' | |
'$q' | |
'$location' | |
( | |
$http | |
$q | |
$location | |
)-> |
This file contains hidden or 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
require 'app' | |
.factory 'Promise', [ | |
'$q' | |
( | |
$q | |
)-> | |
# $q 和 Promise 都兼容的方法 | |
# @example 1) | |
# new Promise (resolve, reject, notify)-> | |
# if flag |
This file contains hidden or 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
<?xml version="1.0" encoding="utf-8"?> | |
<select> | |
<option value='110000'> | |
北京市 | |
</option> | |
<option value='110100'> | |
北京市北京市市辖区 | |
</option> | |
<option value='110101'> | |
北京市北京市东城区 |
This file contains hidden or 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
#!/usr/bin/env bash | |
i=0 | |
while [[ $i -lt 10000 ]] ; do | |
curl -s "http://dmxz.zerodm.net/e/public/ViewClick/?classid=2&id=9003&addclick=1" > /dev/null | |
((i++)) | |
done | |
0 |
NewerOlder