Skip to content

Instantly share code, notes, and snippets.

Avatar

Ruslan Dautkhanov Tagar

  • Denver, CO
View GitHub Profile
@Tagar
Tagar / pprint_color.py
Created Nov 15, 2019 — forked from EdwardBetts/pprint_color.py
Python pprint with color syntax highlighting for the console
View pprint_color.py
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 Sep 11, 2017
hdfs_write_example.c using JNI
View hdfs_write_example.c
#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 Aug 15, 2016 — forked from ChrisWills/.screenrc-main-example
A nice default screenrc
View .screenrc-main-example
# 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
Oracle JOIN elimination using FK
View ora_fk_join_elimination.sql
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 Feb 5, 2016
testing GitHub Gist out..
View hello world
Hello, World!
You can’t perform that action at this time.