start new:
tmux
start new with session name:
tmux new -s myname
package anna | |
import ( | |
"fmt" | |
"github.com/channelmeter/gocql" | |
"github.com/channelmeter/heka/message" | |
. "github.com/channelmeter/heka/pipeline" | |
"regexp" | |
"strings" | |
"sync" |
package main | |
import . "syscall" | |
import "fmt" | |
import "unsafe" | |
type NetlinkAuditRequest struct { | |
Header NlMsghdr | |
Data RtGenmsg | |
} |
package main | |
import ( | |
"log" | |
"net/mail" | |
"encoding/base64" | |
"net/smtp" | |
"fmt" | |
"strings" |
package anna | |
import ( | |
"fmt" | |
"github.com/channelmeter/gocql" | |
"github.com/channelmeter/heka/message" | |
. "github.com/channelmeter/heka/pipeline" | |
"regexp" | |
"strings" | |
"sync" |
CREATE TABLE IF NOT EXISTS `country` ( | |
`id` int(11) NOT NULL AUTO_INCREMENT, | |
`iso` char(2) NOT NULL, | |
`name` varchar(80) NOT NULL, | |
`nicename` varchar(80) NOT NULL, | |
`iso3` char(3) DEFAULT NULL, | |
`numcode` smallint(6) DEFAULT NULL, | |
`phonecode` int(5) NOT NULL, | |
PRIMARY KEY (`id`) | |
) ENGINE=MyISAM DEFAULT CHARSET=latin1; |
#include <stdio.h> | |
#include <stdlib.h> | |
#include <string.h> | |
#include <unistd.h> | |
#include <libwebsockets.h> | |
static int callback_http(struct libwebsocket_context *context, | |
struct libwebsocket *wsi, | |
enum libwebsocket_callback_reasons reason, void *user, |
import "bytes" | |
func StreamToByte(stream io.Reader) []byte { | |
buf := new(bytes.Buffer) | |
buf.ReadFrom(stream) | |
return buf.Bytes() | |
} | |
func StreamToString(stream io.Reader) string { | |
buf := new(bytes.Buffer) |
#include <stdio.h> | |
#include <mysql_version.h> | |
#include <mysql/plugin.h> | |
struct st_mysql_daemon hello_daemon_plugin = | |
{ MYSQL_DAEMON_INTERFACE_VERSION }; | |
static FILE *fp; | |
int hello_daemon_plugin_init(void *p) |
FROM: http://benanne.github.io/2015/03/17/plankton.html | |
Meta-Tricks: | |
- Use %10 for validation with STRATIFIED SAMPLING (my mistake) | |
- Cyclic Pooling | |
- Leaky ReLU = max(x, a*x) learned a | |
- reduces overfitting with a ~= 1/3 | |
- Orthogonal initialization http://arxiv.org/pdf/1312.6120v3.pdf | |
- Use larger weight decay for larger models since otherwise some layers might diverge |