This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
+---------------------+ | |
| 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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
###################### | |
# - Conky settings - # | |
###################### | |
update_interval 1 | |
total_run_times 0 | |
net_avg_samples 1 | |
cpu_avg_samples 1 | |
imlib_cache_size 0 | |
double_buffer yes |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
" 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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
print '\n'.join([''.join(list(x)) for x in list(__import__('itertools', globals()).permutations(list(raw_input('enter password : '))))]) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
PROGRAM articles; | |
uses wincrt; | |
type | |
article = record | |
code, des : string; | |
qt : integer; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
OlderNewer