Skip to content

Instantly share code, notes, and snippets.

@halit
halit / helloworld.hl
Created May 4, 2013 22:31
First hello world my funny programming language hl!
("h", 1);
(---)(+++++++)()(+++)(-------------------------------------------------------------------------------)(+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++)(--------)(+++)(------)(--------)(-------------------------------------------------------------------);
@halit
halit / db.c
Created April 25, 2013 15:35
Simple database
#include <stdio.h>
#include <assert.h>
#include <stdlib.h>
#include <errno.h>
#include <string.h>
#define MAX_DATA 512
#define MAX_ROWS 100
struct Address {
@halit
halit / cat2.c
Created April 25, 2013 14:20
My cat program with low level
/*
* =====================================================================================
*
* Filename: cat2.c
*
* Description: My cat program with low level
*
* Version: 1.0
* Created: 25-04-2013 17:01:46
* Compiler: gcc
@halit
halit / tfc.c
Created April 25, 2013 12:43
Two file comparer
/*
* =====================================================================================
*
* Filename: tfc.c
*
* Description: Two File Comparer
*
* Version: 1.0
* Created: 25-04-2013 15:00:15
* Compiler: gcc
@halit
halit / cat.c
Last active December 16, 2015 15:49
My cat program
/*
* =====================================================================================
*
* Filename: cat.c
*
* Description: My cat program
*
* Version: 1.0
* Created: 25-04-2013 13:58:45
* Compiler: gcc
# Default configuration file for tmux-powerline.
# Modeline {
# vi: foldmarker={,} foldmethod=marker foldlevel=0 tabstop=4 filetype=sh
# }
# General {
# Show which segment fails and its exit code.
export TMUX_POWERLINE_DEBUG_MODE_ENABLED="false"
# Use patched font symbols.
export TMUX_POWERLINE_PATCHED_FONT_IN_USE="true"
++ dirname powerline.sh
+ export TMUX_POWERLINE_DIR_HOME=.
+ TMUX_POWERLINE_DIR_HOME=.
+ source ./config/helpers.sh
+ source ./config/paths.sh
++ export TMUX_POWERLINE_DIR_LIB=./lib
++ TMUX_POWERLINE_DIR_LIB=./lib
++ export TMUX_POWERLINE_DIR_SEGMENTS=./segments
++ TMUX_POWERLINE_DIR_SEGMENTS=./segments
++ export TMUX_POWERLINE_DIR_TEMPORARY=/tmp/tmux-powerline_halit
@halit
halit / test.py
Created December 4, 2012 20:16
Swap value test
def test1(a,b):
a^=b
b^=a
a^=b
return a,b
def test2(a,b):
temp=a
a=b
b=temp
return a,b
@halit
halit / sparks.py
Created December 2, 2012 00:41 — forked from stefanv/sparks.py
Command line sparks in Python
#!/usr/bin/python
# coding=utf-8
# Python version of Zach Holman's "spark"
# https://github.com/holman/spark
# by Stefan van der Walt <[email protected]>
"""
USAGE:
@halit
halit / pi.c
Created November 23, 2012 23:55
Pi
/*!
* \file pi.c
* \brief Calculates the nth digit of pi
*/
#include <stdio.h>
#include <stdlib.h>
#include <math.h>
#include <string.h>