Skip to content

Instantly share code, notes, and snippets.

static void gen_handler (int sig, siginfo_t *siginfo, void *context)
{
printf ("Sending PID: %ld, UID: %ld\n",
(long)siginfo->si_pid, (long)siginfo->si_uid);
}
int main(int argc, char *argv[]){
struct sigaction act;
memset(&act, '\0', sizeof(act));
act.sa_sigaction = &gen_handler;
https://gist.github.com/jhaenchen/7a30a11b0abe4c3520bf
try:
user.get_comments()
except HTTPException:
print "HTTP Exception. Will try again."

Keybase proof

I hereby claim:

  • I am jhaenchen on github.
  • I am jhaenchenls (https://keybase.io/jhaenchenls) on keybase.
  • I have a public key ASCDX5EzmMRJzVk9Glb00yFfZ3SiL47c8abUtWF8YV2vtwo

To claim this, I am signing this object:

import React, { Component } from 'react';
import intl from 'react-intl-universal';
import enJson from './intl/en.json';
const locales = {
en: {
connectClick: "Click {icon} to connect",
}
}