libicu-dev (PyICU dependency)
brew reinstall pkg-config icu4c
This file contains 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
#!/usr/bin/env bash | |
# https://docs.docker.com/install/linux/docker-ce/ubuntu/ | |
sudo apt-get install apt-transport-https ca-certificates curl software-properties-common | |
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add - | |
sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu xenial stable" | |
sudo apt-get update | |
sudo apt-get install docker-ce | |
# https://docs.docker.com/compose/install/ |
Job Description | Actual meaning |
---|---|
A fast-paced environment | Your job will be constant firefighting |
A market leader | Recently started making a profit |
Able to work with minimal spervision | You'll be the one we blame when something goes wrong |
An Agile team | We have daily stand-ups |
Dynamic environment | Our leadership keeps changing priorities |
Must be a team player | Must not question authority |
Ninja | You do all the work alone |
Passionate | You wil |
This file contains 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
#define _WIN32_WINNT 0x0600 | |
#include <stdio.h> | |
#include <windows.h> | |
#include <fileapi.h> | |
#ifndef ENABLE_VIRTUAL_TERMINAL_PROCESSING | |
#define ENABLE_VIRTUAL_TERMINAL_PROCESSING 0x0004 | |
#endif |
This file contains 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
def bufferise(defbuf=20, defskip=0): | |
def decorate(function): | |
def wrapper(*args, **kwargs): | |
bufsize = kwargs['bufsize'] if 'bufsize' in kwargs else defbuf | |
skiplines = kwargs['skiplines'] if 'skiplines' in kwargs else defskip | |
print 'Bufsize = {}'.format(bufsize) | |
print 'Skip {} lines'.format(skiplines) | |
if skiplines: | |
for i, record in enumerate(function(*args, **kwargs), start=1): | |
if i > skiplines: |
This file contains 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
total_memory_percentage = 20.0 | |
total_memory_max_megabytes = 8000 | |
memory_params_percentage = { | |
'shared_buffers': 25.0, | |
'work_mem': 1.0, | |
'maintenance_work_mem': 12.0, | |
'effective_cache_size': 62.0, | |
} |
This file contains 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 ( | |
"bytes" | |
"encoding/gob" | |
"fmt" | |
"github.com/ugorji/go/codec" | |
"io/ioutil" | |
"labix.org/v2/mgo" | |
"labix.org/v2/mgo/bson" |
This file contains 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
#!/usr/bin/env ruby | |
# Colorize string | |
class String | |
def colorize(color_code) | |
"\e[#{color_code}m#{self}\e[0m" | |
end | |
end | |
class Colors |
NewerOlder