Skip to content

Instantly share code, notes, and snippets.

View realazizk's full-sized avatar

aziz realazizk

View GitHub Profile
#!/bin/sh
# Simple shell script to get quote of the day
# Author : Mohamed Aziz Knani
# You need to install jq for json parsing
# Colors :D
green='\033[0;32m'
blue='\033[0;34m'
NC='\033[0m'
#!/usr/bin/env python2
# -*- coding: utf-8 -*-
# A simple python script to get quote of the day
# Author : Mohamed Aziz knani : medazizknani[at]gmail.com
# Sorry for the errors in the last days but the api system chnaged :v
from os.path import join, exists
def gettime() :
from time import strftime
return strftime('%Y-%m-%d')+'.txt'
@realazizk
realazizk / my dot files
Created March 22, 2015 20:44
My shell config
+---------------------+
| My .bashrc |
+---------------------+
# Base16 color scheme (colors) for the shell
BASE16_SHELL="/usr/share/base16-shell/base16-colors.dark.sh"
[[ -s $BASE16_SHELL ]] && source $BASE16_SHELL
archey3
# Quote of the day
python2 ~/quote.py
@realazizk
realazizk / gist:4cad17d15b214fa70170
Created June 15, 2015 14:46
my .conkyrc (heavily depends on conky-colors)
######################
# - Conky settings - #
######################
update_interval 1
total_run_times 0
net_avg_samples 1
cpu_avg_samples 1
imlib_cache_size 0
double_buffer yes
# For the benefit of emacs users: -*- shell-script -*-
###########################
# xbindkeys configuration #
###########################
#
# Version: 1.8.6
#
# If you edit this file, do not forget to uncomment any lines
# that you change.
# The pound(#) symbol may be used anywhere for comments.
@realazizk
realazizk / .vimrc
Created June 30, 2015 12:46
myvimrc
" myvimrc I edited fisa config (added youcomplete me instead of
" necomplcache and some base16 cool colorscheme and some cool stuff like the
" minimap which is based on drawille (I forked it and I m supposed to do some
" work on it and I also added the snippets (some Issues with C/C++) ) )
" ============================================================================
" Vundle initialization
" Avoid modify this section, unless you are very sure of what you are doing
" no vi-compatible
set nocompatible
@realazizk
realazizk / ma config vim windows
Last active September 8, 2015 01:33
install Inconsolata et base16
set nocompatible
source $VIMRUNTIME/vimrc_example.vim
" I don't use mswin I use it the good ol'way
"source $VIMRUNTIME/mswin.vim
"behave mswin
set diffexpr=MyDiff()
function MyDiff()
let opt = '-a --binary '
if &diffopt =~ 'icase' | let opt = opt . '-i ' | endif
print '\n'.join([''.join(list(x)) for x in list(__import__('itertools', globals()).permutations(list(raw_input('enter password : '))))])
PROGRAM articles;
uses wincrt;
type
article = record
code, des : string;
qt : integer;
from __future__ import division
from math import sqrt, log10, floor
isFib = lambda x : sqrt(5*x*x + 4 ).is_integer() or sqrt(5*x*x - 4 ).is_integer()
# isFib = lambda x : (log10(sqrt(5) * x) / log10(1.618)) % 1 < 0.01
raw_input()
for x in map(int, raw_input().split()):
p = x