View 0_reuse_code.js
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
View n_queens_problem.cpp
#include <iostream>
class QueensProblem {
int size;
bool ** checkerboard;
void memset();
void setCheckerBoard();
View .gitconfig
branch-name = "!git rev-parse --abbrev-ref HEAD"
f = fetch -p
m = "!git merge origin/$(git branch-name)"
d = "!git diff --color | diff-so-fancy"
st = status
ci = commit
co = checkout
bugbase = "!git config variable.working-base develop-sprint-17-18"
newbase = "!git config variable.working-base develop-sprint-19-20"

Converting a Word Document to Markdown in One Move

The Problem

A lot of important government documents are created and saved in Microsoft Word (*.docx). But Microsoft Word is a proprietary format, and it's not really useful for presenting documents on the web. So, I wanted to find a way to convert a .docx file into markdown.

Installing Pandoc

On a mac you can use homebrew by running the command brew install pandoc.

The Solution

View main.asm
; Labb2.asm
; Created: 2017-04-24 16:18:25
; Author : Gustav Aaro
; Replace with your application code
.def currentChar = r21
.def morseCurrentChar = r22
public static void main(String[] args) {
Objektas labas = new Objektas();
System.out.println(labas.a); // atspausdinamas objekto kintamasis
# installing erlang on ubuntu's
sudo apt-get install build-essential libncurses5-dev openssl libssl-dev
sudo mkdir -p /opt/erlang/
curl -O && chmod a+x kerl
sudo mv kerl /opt/erlang/
View gist:48cd566367484acb248acaf2ecd3473e
public void sendRequest(View view) {
RequestQueue queue = Volley.newRequestQueue(getApplicationContext());
String a = aValue.getText().toString();
String b = bValue.getText().toString();
String url = ""+a+"&b="+b;
StringRequest request = new StringRequest(Request.Method.GET, url,
new Response.Listener<String>() {
public void onResponse(String s) {
View gist:7f3d00982fbb51c3bc4813d5e6bcd2ff
$config['imap_conn_options'] = array(
'ssl' => array(
'verify_peer' => false,
'verify_peer_name' => false,
'verify_depth' => 3,
import time
import sys
def sumOFN(n):
start = time.time()
theSum = 0
for i in range(1,n+1):