Skip to content

Instantly share code, notes, and snippets.

View ikariwing's full-sized avatar

Will Wang (IKARi) ikariwing

View GitHub Profile
async function foo() {
console.log('im in');
doSomething();
await doOtherThing();
}
async function bar() {
while (1) {
await getMessageFromAzure();
await foo();
@ikariwing
ikariwing / pycon.py
Created November 30, 2017 10:01
ipcam control script
from SimpleCV import JpegStreamCamera, Display
import time
from subprocess import call
#initialize the IP camera
cam = JpegStreamCamera("http://192.168.2.11:81/videostream.cgi?user=admin&pwd=&resolution=8&rate=0")
display = Display()
img = cam.getImage()
img.save(display)
while not display.isDone():
--- Log opened Thu Apr 18 14:41:31 2013
14:44 < dannvix> hello world!
15:45 < hcchien> just saw the picture that ingy got Taiwan beer!
20:12 -!- chihchun is now known as zz_chihchun
21:57 < clkao> miyagawa: muchomucho++
21:58 < clkao> grr missing osdc!
22:08 < hcchien> miyagawa: ping
23:17 < hcchien> btw, we will have the hackathron on Sunday.
23:17 < lunastorm> woot
23:17 < lunastorm> where
@ikariwing
ikariwing / allison-osdctw-2012.md
Created April 15, 2012 16:33 — forked from audreyt/allison-osdctw-2012.md
IRC transcript of Allison's OSDC.tw talk

Good collaboration in open source projects

Over the years, I start thinking that participating in the open source community is like traveling on a path, toward becoming not only better programmers, but also becoming better people by working together.

You might think of it as a path toward enlightenment, growing ourselves as human beings. So what follows is really my personal philosophy which I'd like to share with you.

The first thing is this: The most important part of every open source project is the people. While code is important, the center is always the people.

There are different kinds of people involved in a project: People who code, who writes documentations, who writes tests. People who use your software, too, are just as important for a project.

@ikariwing
ikariwing / gist:2393705
Created April 15, 2012 16:31 — forked from linpc/gist:2389778
#osdc.tw 2012 irc log
--- Day changed 六 4月 14 2012
00:00 < hcchien> 算了,洗澡睡覺去。明天看緣份了 :D
00:18 < cls_bsd> ....
00:34 < jnlin> hcchien: 我有...
07:37 < darkx> 大家早安
08:36 < miyagawa> which building is the venue? http://www.sinica.edu.tw/as/map/asmap_c.html
08:39 < clkao_> miyagawa: 24
08:39 < miyagawa> thanks
08:39 < clkao_> hcchien: 為什麼我的 abstract 沒有出現
08:57 clkao_ is now known as clkao
c++ - Which one to use - memset() or value initialization to zero out a struct? - Stack Overflow
http://stackoverflow.com/questions/1998752/which-one-to-use-memset-or-value-initialization-to-zero-out-a-struct
c - When zeroing a struct such as sockaddr_in, sockaddr_in6 and addrinfo before use, which is correct: memset, an initializer or either? - Stack Overflow
http://stackoverflow.com/questions/894300/when-zeroing-a-struct-such-as-sockaddr-in-sockaddr-in6-and-addrinfo-before-use
c++ - initialize two dimensional array of pointer elements using memset - Stack Overflow
http://stackoverflow.com/questions/397153/initialize-two-dimensional-array-of-pointer-elements-using-memset
c - memset and SIGSEGV - Stack Overflow
http://stackoverflow.com/questions/560155/memset-and-sigsegv
memset on array of structures in C++ - Stack Overflow
http://stackoverflow.com/questions/2789735/memset-on-array-of-structures-in-c
c++ - Which one to use - memset() or value initialization to zero out a struct? - Stack Overflow
http://stackoverflow.com/questions/1998752/which-one-to-use-memset-or-value-initialization-to-zero-out-a-struct
c - When zeroing a struct such as sockaddr_in, sockaddr_in6 and addrinfo before use, which is correct: memset, an initializer or either? - Stack Overflow
http://stackoverflow.com/questions/894300/when-zeroing-a-struct-such-as-sockaddr-in-sockaddr-in6-and-addrinfo-before-use
c++ - initialize two dimensional array of pointer elements using memset - Stack Overflow
http://stackoverflow.com/questions/397153/initialize-two-dimensional-array-of-pointer-elements-using-memset
c - memset and SIGSEGV - Stack Overflow
http://stackoverflow.com/questions/560155/memset-and-sigsegv
memset on array of structures in C++ - Stack Overflow
http://stackoverflow.com/questions/2789735/memset-on-array-of-structures-in-c