Skip to content

Instantly share code, notes, and snippets.

@kalashnikov
kalashnikov / get_data.py
Last active July 5, 2022 20:50
Process financials data from Gurufocus API
import json
import pandas as pd
import requests as r
import os
import sys
#
# Load data using Gurufocus API
# Process data into DataFrame object and save as csv format
#
@kalashnikov
kalashnikov / keybase.md
Created February 11, 2017 04:14
keybase.md

Keybase proof

I hereby claim:

  • I am kalashnikov on github.
  • I am kalakuo (https://keybase.io/kalakuo) on keybase.
  • I have a public key ASBePFqV2bdHQ1g18OYrp5ZdZYnDIM266b97Nu3HUBjwAgo

To claim this, I am signing this object:

@kalashnikov
kalashnikov / gcc-5.3_install.csh
Last active February 23, 2021 01:36
GCC 5.3 install script from scratch (C-Shell)
#!/bin/csh
# Script to build GCC 5.3 from scratch on REHL6 platform
# Ref: http://stackoverflow.com/questions/9450394/how-to-install-gcc-piece-by-piece-with-gmp-mpfr-mpc-elf-without-shared-libra
setenv PREFIX /net/mosa/data/usr/local
wget ftp://gcc.gnu.org/pub/gcc/infrastructure/gmp-4.3.2.tar.bz2
bunzip2 gmp-4.3.2.tar.bz2
tar xvf gmp-4.3.2.tar
@kalashnikov
kalashnikov / sighandler.cpp
Last active January 20, 2016 03:30
Signal handler
#include <stdio.h>
#include <sys/types.h>
#include <unistd.h>
#include <signal.h>
#include <stdlib.h>
#include <string.h>
void sighandler(int signum)
{
printf("Process %d got signal %d\n", getpid(), signum);
//
// Regular Expression for URL validation
//
// Author: Diego Perini
// Updated: 2010/12/05
// License: MIT
//
// Copyright (c) 2010-2013 Diego Perini (http://www.iport.it)
//
// Permission is hereby granted, free of charge, to any person
@kalashnikov
kalashnikov / front-end.md
Created July 12, 2015 10:19
Front-end Design
@kalashnikov
kalashnikov / createTags.rb
Last active August 29, 2015 14:01
Ruby script to create file for ctags and cscope. Save files to invoke folder.
%x[rm ~/.filelist] if File.exist?("/home/kalaexj/.filelist")
%x[rm tags] if File.exist?("tags")
%x[rm cscope.out] if File.exist?("cscope.out")
%x[find . -regex '.*/*\.h' >> /home/kalaexj/.filelist]
%x[find . -regex '.*/*\.c' >> /home/kalaexj/.filelist]
%x[find . -regex '.*/*\.cpp' >> /home/kalaexj/.filelist]
%x[ctags -R -L /home/kalaexj/.filelist -h ".h.c.cpp"]
%x[cscope -b -i /home/kalaexj/.filelist]
@kalashnikov
kalashnikov / doc.md
Created April 9, 2014 17:55
Learn Ruby from source code
@kalashnikov
kalashnikov / bopomofo.schema.yaml
Last active August 29, 2015 13:57 — forked from chenhunghan/bopomofo.schema.yaml
Use Shift_R & Shift_L to switch from Chinese input to English
# Rime schema
# encoding: utf-8
schema:
schema_id: bopomofo
name: 正體
version: "1.3"
author: 這樣 是
- 佛振 <chen.sst@gmail.com>
- turtleknight(修正臺灣使用者輸入習慣) <stk.chen@gmail.com>