Skip to content

Instantly share code, notes, and snippets.

View julemand101's full-sized avatar

Jacob Bang julemand101

View GitHub Profile
2020-02-11T09:18:30.2802148Z 60 -rwxr-xr-x 1 root root 60064 Jan 1 1970 [
2020-02-11T09:18:30.2803289Z 28 -rwxr-xr-x 1 root root 26704 Jan 1 1970 addpart
2020-02-11T09:18:30.2803614Z 20 -rwxr-xr-x 1 root root 18520 Jan 1 1970 apt
2020-02-11T09:18:30.2803919Z 84 -rwxr-xr-x 1 root root 84128 Jan 1 1970 apt-cache
2020-02-11T09:18:30.2804187Z 28 -rwxr-xr-x 1 root root 26784 Jan 1 1970 apt-cdrom
2020-02-11T09:18:30.2804495Z 28 -rwxr-xr-x 1 root root 26712 Jan 1 1970 apt-config
2020-02-11T09:18:30.2804801Z 48 -rwxr-xr-x 1 root root 47264 Jan 1 1970 apt-get
2020-02-11T09:18:30.2805285Z 28 -rwxr-xr-x 1 root root 27730 Jan 1 1970 apt-key
2020-02-11T09:18:30.2805701Z 56 -rwxr-xr-x 1 root root 55456 Jan 1 1970 apt-mark
2020-02-11T09:18:30.2806093Z 40 -rwxr-xr-x 1 root root 39584 Jan 1 1970 arch
@julemand101
julemand101 / index.html
Created January 29, 2020 06:23
Is there a better way of writing this data structure in Dart?
<!doctype html>
<!--
Versão desse template 1.1.1.1
Última Alteração: 22/1/2020 11:05
-->
<html lang="pt-br">
<head>
import 'package:collection/collection.dart';
void main() {
final categories1 = [
{'name': 'blues'},
{'name': 'rock'},
{'name': 'hiphop'}
];
final categories2 = [
{'name': 'blues'},
<!--
Licensed to the Apache Software Foundation (ASF) under one or more
contributor license agreements. See the NOTICE file distributed with
this work for additional information regarding copyright ownership.
The ASF licenses this file to You under the Apache License, Version 2.0
(the "License"); you may not use this file except in compliance with
the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
#!/bin/python
import json, math, random, urllib.request
with urllib.request.urlopen('https://api.protonmail.ch/vpn/logicals') as response:
jsonData = response.read().decode("utf-8")
json_parsed_response = json.loads(jsonData)
all_features = {"SECURE_CORE": 1, "TOR": 2, "P2P": 4, "XOR": 8, "IPV6": 16}
excluded_features_on_fastest_connect = ["TOR"]
import 'dart:core';
import 'dart:convert';
void main() {
PostCommentList commentList = getComments();
commentList.comments.forEach((comment) {
print(comment);
});
// --- Day 13: Mine Cart Madness ---
// https://adventofcode.com/2018/day/13
import 'dart:convert';
enum Direction { up, down, left, right }
enum TurnDirection { left, straight, right }
main() {
print(solveA([
import 'dart:math' as math;
final List<String> EXAMPLE = [
"../.# => ##./#../...",
".#./..#/### => #..#/..../..../#..#"
];
void main() {
// Part 1 - Example 1
print(solve(EXAMPLE, 2)); // Should give 12

Keybase proof

I hereby claim:

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

To claim this, I am signing this object:

@julemand101
julemand101 / TCConverter.java
Created January 9, 2013 16:19
Version of TCConverter with all swing stuff removed. The program now takes three parameters: Usage: <destinations.dat> <destinations.txt> <destinations.dot> labelIntersections is just always false. Dit not need that option :P
package com.github.etsija.tcgraph;
import java.io.BufferedWriter;
import java.io.DataInputStream;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileWriter;
import java.io.IOException;
import java.util.ArrayList;
import java.util.HashMap;