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
| fn main() { | |
| let mut a = String::from("hello"); | |
| { | |
| let b = &mut a; | |
| &&&&&&&&&&&&&&&&&&&&&&&b.push('b'); | |
| } | |
| a.push('a'); | |
| println!("{}", a); | |
| } |
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
| class Field(object): | |
| def __init__(self, value=None): | |
| self.value = value | |
| def __get__(self, instance, owner): | |
| print("getting") | |
| return self.value | |
| def __set__(self, instance, value): |
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
| from heimdall_client import X | |
| X.setRule('''<?xml version="1.0"?><data><production><lhs><has identifier="spu:1" attribute="quantity" value="$quantity"/></lhs><rhs kind="quota:order:spu" quota="1" spu_id="1"/></production></data>''') | |
| X.getRule() |
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
| package main | |
| import ( | |
| "fmt" | |
| "runtime/debug" | |
| ) | |
| func f() (ret interface{}, err error){ | |
| var x interface{} | |
| defer func() { |
- 歌单:http://pastebin.dapps.douban.com/show/115076/
- 歌词: https://github.intra.douban.com/yangcheng/market_alg/blob/dev/analysis/lyric/lyric.txt
- 来源:fm 红心(最近一千万标记,流派为民谣,中文有歌词,按红心数排序取前 100)
- jieba 分词
- 自定义停用词
- 词性过滤 ('v', 'n', 'ns', 'vn') https://gist.github.com/luw2007/6016931
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
| dbbbit@ubuntu:~/red/linux-2.6.39$ ../lk-tester-maker/debug2_6.sh | |
| rm: cannot remove 'arch/x86/boot/initrd.img-2.6.39': No such file or directory | |
| [sudo] password for dbbbit: | |
| W: plymouth: The plugin label.so is missing, the selected theme might not work as expected. | |
| W: plymouth: You might want to install the plymouth-themes and plymouth-label package to fix this. | |
| W: mdadm: /etc/mdadm/mdadm.conf defines no arrays. | |
| warning: TCG doesn't support requested feature: CPUID.01H:ECX.vmx [bit 5] | |
| [ 0.000000] Initializing cgroup subsys cpuset | |
| [ 0.000000] Initializing cgroup subsys cpu | |
| [ 0.000000] Linux version 2.6.39 (dbbbit@ubuntu) (gcc version 4.9.3 (Ubuntu 4.9.3-13ubuntu2) ) #7 SMP Mon Sep 18 23:08:53 CST 2017 |
OlderNewer