Skip to content
{{ message }}

Instantly share code, notes, and snippets.

# Dashamir Hoxha dashohoxha

Created Apr 11, 2018
My solution for this codejam problem: https://codejam.withgoogle.com/2018/challenges/00000000000000cb/dashboard/00000000000079cb
View troublesort.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
 def troublesort(V): done = False while not done: done = True for i in range(len(V)-2): if V[i] > V[i+2]: done = False V[i], V[i+2] = V[i+2], V[i] def check(V):
Created Feb 25, 2018 — forked from elvisciotti/gist:37b99aeff8ff50ebe80a
git: recreate repository based on current files
View gist:8fe4b429e853fe82f4a17d185008bb74
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
 cp .git/config /tmp/gitBackup rm -rf .git git init cp /tmp/gitBackup .git/config git remote add origin git add . git status git commit -m "rewrite history" git push -f
Created Apr 9, 2017
View stalls.rb
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
 def solve(n, k) l = 0 p2 = 1 # 2**0 k1 = k n1 = n chunk = n while (k1 - p2 > 0) k1 -= p2 n1 -= p2 chunk -= 1
Last active Mar 2, 2018
View keybase.md

### Keybase proof

I hereby claim:

• I am dashohoxha on github.
• I am dashohoxha (https://keybase.io/dashohoxha) on keybase.
• I have a public key ASClLI_RjQu6KDeKRN9_rdFd2cAI6QJ8fd7L2eckpxwIGwo

To claim this, I am signing this object:

Created Dec 25, 2014
B-Translator API Examples // source http://jsbin.com/juzipa
View index.html
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

Created Dec 19, 2014
B-Translator API Examples // source http://jsbin.com/giweta
View index.html
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

Created May 11, 2014
Codejam 2014, Round1C, Problem A
View partelf.rb
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
 # Problem description: https://code.google.com/codejam/contest/3004486/dashboard#s=p0 powers = [1] nr = 1 41.times do nr = nr * 2 powers << nr end T = gets.to_i
Created May 9, 2014
View jsbin.giweta.css
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
 #div-output { float: left; margin: 2px 10px 5px 15px; width: 100%; }
Created May 3, 2014
View speak.sh
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/bash rawurlencode() { local string="\${1}" local strlen=\${#string} local encoded="" for (( pos=0 ; pos
Last active Dec 19, 2015
View easy-blogging-with-emacs.org

# Easy Blogging With Emacs

Time after time I write technical blogs and articles that describe and