Skip to content

Instantly share code, notes, and snippets.

View exapsy's full-sized avatar
😅

Apostolis A. exapsy

😅
View GitHub Profile
using System;
using System.Linq;
using System.IO;
using System.Text;
using System.Collections;
using System.Collections.Generic;
/**
* Auto-generated code below aims at helping you parse
* the standard input according to the problem statement.
using System;
using System.Linq;
using System.IO;
using System.Text;
using System.Collections;
using System.Collections.Generic;
/**
* Auto-generated code below aims at helping you parse
* the standard input according to the problem statement.
# Weather curl
function weather {
if [ -z "$1" ]; then
location="YOUR DEFAULT LOCATION HERE"
else
location=$1
fi
[ ! -d ~/.cache/weather ] && \
mkdir ~/.cache/weather
# Prints a raw file from a github repository
# usage: gitraw johndoe/myrepo README.md
# required: export GITTOKEN, generate a token from github settings
function gitraw {
GITUSER=$(echo $1 | sed -n "s/\([[:alnum:]]\+\)\/.*/\1/gp")
GITREPO=$(echo $1 | sed -n "s/.*\/\([[:alnum:]]\+\)$/\1/gp")
GITCONTENT=$2
if [ -z $1 ]; then
echo "No path given"
else
var B,i,y,u,b,I=[],G=120,x=10,z=15,M=1e4,l=[5,3,4,6,2,4,3,5,1,1,1,1,1,1,1,1,9,9
,9,9,9,9,9,9,13,11,12,14,10,12,11,13,0,99,0,306,297,495,846,-1,0,1,2,2,1,0,-1,-
1,1,-10,10,-11,-9,9,11,10,20,-9,-11,-10,-20,-21,-19,-12,-8,8,12,19,21];function
X(w,c,h,e,S,s){var t,o,L,E,d,O=e,N=-M*M,K=78-h<<x,p,g,n,m,A,q,r,C,J,a=y?-x:x;
y^=8;G++;d=w||s&&s>=h&&X(0,0,0,21,0,0)>M;do{if(o=I[p=O]){q=o&z^y;if(q<7){A=q--&
2?8:4;C=o-9&z?[53,47,61,51,47,47][q]:57;do{r=I[p+=l[C]];if(!w|p==w){g=q|p+a-S?0
:S;if(!r&(!!q|A<3||!!g)||(r+1&z^y)>9&&q|A>2){if(m=!(r-2&7))return y^=8,I[G--]=
O,K;J=n=o&z;E=I[p-a]&z;t=q|E-7?n:(n+=2,6^y);while(n<=t){L=r?l[r&7|32]-h-q:0;if(
s)L+=(1-q?l[(p-p%x)/x+37]-l[(O-O%x)/x+37]+l[p%x+38]*(q?1:2)-l[O%x+38]+(o&16)/2:
!!m*9)+(!q?!(I[p-1]^n)+!(I[p+1]^n)+l[n&7|32]-99+!!g*99+(A<2):0)+!(E^y^9);if(s>h
" Vundle plugin manager setup
" All plugins should be added on that file
" Do not add Plugins or other Vundle commands in .vimrc
source ~/.vim/configs/vundle.vimrc
"
" SETTINGS
"
"