Skip to content

Instantly share code, notes, and snippets.

View node's full-sized avatar

Chris (Gentle) Y杨 node

View GitHub Profile
@node
node / circos
Last active January 1, 2016 07:09
Data visualization
circos in D3.js
https://github.com/soundsuggest/example-d3js/tree/master/circos
circos.js
https://code.google.com/p/chaos-somanayr/source/browse/trunk/Circos/JavaScript/circos.js?r=22
@node
node / 常用命令和操作
Last active January 4, 2016 18:29
DATABASE SQL NOSQL KEY-VALUE
全复制数据库
mysqldump -hlocalhost -uroot -ppasswpord database1_source --opt | mysql -hlocalhost -uroot -ppassword database2_desctination
@node
node / Similarity Measure
Last active December 15, 2015 19:20
Data
#!/usr/bin/env python
# ref. https://github.com/saimadhu-polamuri/DataAspirant_codes/blob/master/Similarity_measures/similaritymeasures.py
# ref. http://hi.baidu.com/uu_master/item/0b89469b42adef9bcd80e5e8
from math import*
from decimal import Decimal
class Similarity():
@node
node / client2.c
Last active August 27, 2015 02:24 — forked from yongboy/client2.c
gcc -o client2 client2.c -levent; run:./client2 -h 192.168.190.180 -p 8000 -o 192.168.190.150,192.168.190.143,192.168.190.144,192.168.190.145,192.168.190.146,192.168.190.147,192.168.190.148,192.168.190.149,192.168.190.151,192.168.190.152
#include <sys/types.h>
#include <sys/time.h>
#include <sys/queue.h>
#include <stdlib.h>
#include <err.h>
#include <event.h>
#include <evhttp.h>
#include <unistd.h>
#include <stdio.h>
#include <string.h>
"catalina-exec-35" daemon prio=10 tid=0x00007fdb08020800 nid=0x887a waiting on condition [0x00007fdabedeb000]
java.lang.Thread.State: WAITING (parking)
at sun.misc.Unsafe.park(Native Method)
- parking to wait for <0x00000007f0ca71c8> (a org.elasticsearch.common.util.concurrent.BaseFuture$Sync)
at java.util.concurrent.locks.LockSupport.park(LockSupport.java:186)
at java.util.concurrent.locks.AbstractQueuedSynchronizer.parkAndCheckInterrupt(AbstractQueuedSynchronizer.java:834)
at java.util.concurrent.locks.AbstractQueuedSynchronizer.doAcquireSharedInterruptibly(AbstractQueuedSynchronizer.java:994)
at java.util.concurrent.locks.AbstractQueuedSynchronizer.acquireSharedInterruptibly(AbstractQueuedSynchronizer.java:1303)
at org.elasticsearch.common.util.concurrent.BaseFuture$Sync.get(BaseFuture.java:276)
at org.elasticsearch.common.util.concurrent.BaseFuture.get(BaseFuture.java:116)
@node
node / rustc-issue.md
Created January 25, 2022 03:54
手动执行 rustc 和 程序调用 rustc 的区别是什么?

手动编译

一切正常 rustc xx.rs ,编译后可执行文件也运行正常。

在某系统中通过程序调用 rustc

编译报错