PUT /spider_amazon_product_monitor
{
"JSON文件"
}
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
resources "/posts",only: [:show] | |
scpco "/admin" do | |
resources "/posts",except: [:show] | |
end |
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
defmodule PhoenixJobs.JobController do | |
use Phoenix.Controller | |
alias PhoenixJobs.Repo | |
alias Phoenix.Controller.Flash | |
alias PhoenixJobs.Queries | |
alias PhoenixJobs.Router.Helpers | |
plug :action | |
def index(conn, _params) do |
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
defmodule Die do | |
def init(), do: :random.seed(:erlang.now) | |
def d6(), do: :random.uniform(6) | |
def d100(), do: :random.uniform(100) | |
end | |
defmodule War do | |
def create_player(name, skill, hp) do | |
[ name: name, skill: skill, hp: hp ] | |
end |
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
// Dart VM version: 1.13.0-dev.7.3 (Fri Oct 23 04:20:51 2015) on "windows_x64" | |
// https://www.dartlang.org/docs/dart-up-and-running/ch03.html#dartmirrors---reflection | |
// http://stackoverflow.com/questions/19492607/how-to-retrieve-metadata-in-dartlang | |
import 'dart:mirrors'; | |
class todo { | |
final String who; | |
final String what; | |
const todo(this.who, this.what); |
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
import net | |
import rawsockets | |
import strutils | |
const SERVER_PORT = Port(1987) | |
const SERVER_ADDR = "localhost" | |
var canQuit = false | |
proc main() = |
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> | |
<html lang="zh-CN"><head> | |
<meta charset="utf-8"> | |
<meta http-equiv="X-UA-Compatible" content="IE=edge"> | |
<title>{$name} - 百合花俱乐部</title> | |
<meta name="viewport" content="initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0, user-scalable=no, width=device-width"> | |
<meta content="telephone=no" name="format-detection"> | |
<link href="{MAIQUAN_LILY_STATIC}style/reset.css" rel="stylesheet"> | |
<link href="{MAIQUAN_LILY_STATIC}style/main.css" rel="stylesheet"> | |
<link href="{MAIQUAN_LILY_STATIC}style/weui.css" rel="stylesheet"> |
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
import 'dart:html'; | |
import 'package:angular/angular.dart'; | |
import 'package:angular_forms/angular_forms.dart'; | |
@Component( | |
selector: 'child-directive', | |
template: '<p>child</p>' | |
) |
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
正则匹配 | |
匹配中文字符的正则表达式: [\u4e00-\u9fa5] | |
评注:匹配中文还真是个头疼的事,有了这个表达式就好办了 | |
匹配双字节字符(包括汉字在内):[^\x00-\xff] | |
评注:可以用来计算字符串的长度(一个双字节字符长度计2,ASCII字符计1) | |
匹配空白行的正则表达式:\n\s*\r | |
评注:可以用来删除空白行 |
window10安装使用msvc报错问题,所以选择gnu编译器
rustup toolchain install stable-x86_64-pc-windows-gnu
rustup default stable-gnu
OlderNewer