Skip to content

Instantly share code, notes, and snippets.

View Tagar's full-sized avatar
🗻

Ruslan Dautkhanov Tagar

🗻
  • Denver, CO
  • 17:59 (UTC -06:00)
View GitHub Profile
@Tagar
Tagar / pprint_color.py
Created November 15, 2019 04:36 — forked from EdwardBetts/pprint_color.py
Python pprint with color syntax highlighting for the console
from pygments import highlight
from pygments.lexers import PythonLexer
from pygments.formatters import Terminal256Formatter
from pprint import pformat
def pprint_color(obj):
print highlight(pformat(obj), PythonLexer(), Terminal256Formatter())
@Tagar
Tagar / hdfs_write_example.c
Created September 11, 2017 23:17
hdfs_write_example.c using JNI
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include "hdfs.h"
void logging (const char *msg)
{
fprintf(stderr, "%s\n", msg);
}
@Tagar
Tagar / .screenrc-main-example
Last active August 15, 2016 20:25 — forked from ChrisWills/.screenrc-main-example
A nice default screenrc
# GNU Screen - main configuration file
# All other .screenrc files will source this file to inherit settings.
# Author: Christian Wills - cwills.sys@gmail.com
# Allow bold colors - necessary for some reason
attrcolor b ".I"
# Tell screen how to set colors. AB = background, AF=foreground
termcapinfo xterm 'Co#256:AB=\E[48;5;%dm:AF=\E[38;5;%dm'
@Tagar
Tagar / ora_fk_join_elimination.sql
Created May 12, 2016 22:48
Oracle JOIN elimination using FK
SQL> ALTER TABLE CLIENTS_TEST ADD CONSTRAINT CLIENTS_TEST_PK PRIMARY KEY (CLIENT_ID)
TABLE altered.
SQL> CREATE TABLE CLIENTS_DIM (
CLIENT_ID NUMBER
, ATTR1 NUMBER
, ATTR2 NUMBER
)
TABLE created.
@Tagar
Tagar / hello world
Created February 5, 2016 00:27
testing GitHub Gist out..
Hello, World!