This file contains hidden or 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
set nocompatible | |
filetype off | |
set rtp+=~/.config/nvim/bundle/Vundle.vim | |
call vundle#begin() | |
Plugin 'gmarik/Vundle.vim' | |
Plugin 'vim-airline/vim-airline' | |
Plugin 'vim-airline/vim-airline-themes' | |
Plugin 'klen/python-mode' |
This file contains hidden or 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
""" | |
handler.py | |
---------- | |
Elasticsearch handler | |
""" | |
import logging | |
class ElasticsearchHandler(logging.Handler): |
This file contains hidden or 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
import tempfile | |
class ChunkWriter: | |
pass | |
class CSVChunkWriter: | |
def __init__(self, filename=None): | |
self.filename = filename | |
if filename: | |
self.file_ = open(filename, 'wb') |
This file contains hidden or 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
#include <stdio.h> | |
int main() { | |
unsigned int param_1 = 5, param_2 = 8; | |
unsigned int sum, carry; | |
sum = param_1 ^ param_2; | |
carry = param_1 & param_2; | |
for (int i = 0; i < sizeof(carry); i ++) { | |
carry <<= 1; | |
param_1 = sum; |
This file contains hidden or 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
import requests | |
GREENHOUSE_API_KEY = '<api_key>' | |
greenhouse_client = None | |
class GreenhouseClient: | |
activity_feed_url = ('https://harvest.greenhouse.io/v1/candidates/' + |