Skip to content

Instantly share code, notes, and snippets.

Avatar

Amirhossein Aleyasen Aleyasen

View GitHub Profile
@anttilipp
anttilipp / temperatureCircle.py
Created Aug 2, 2017
Code to reproduce the "Temperature Circle" visualization.
View temperatureCircle.py
#
# Hi all,
# this is the Python code I used to make the visualization "Temperature circle"
# (https://twitter.com/anttilip/status/892318734244884480).
# Please be aware that originally I wrote this for my tests only so the
# code was not ment to be published and is a mess and has no comments.
# Feel free to improve, modify, do whatever you want with it. If you decide
# to use the code, make an improved version of it, or it is useful for you
# in some another way I would be happy to know about it. You can contact me
# for example in Twitter (@anttilip). Unchecked demo data (no quarantees)
@andyrbell
andyrbell / docker-image-size.sh
Last active Apr 19, 2021
Sort docker images by size desc
View docker-image-size.sh
#!/bin/sh
docker images --format '{{.Size}}\t{{.Repository}}\t{{.Tag}}\t{{.ID}}' | sed 's/ //' | sort -h -r | column -t
@justjanne
justjanne / Price Breakdown.md
Last active Apr 6, 2021 — forked from kylemanna/price.txt
Server Price Breakdown: DigitalOcean, Amazon AWS LightSail, Vultr, Linode, OVH, Hetzner, Scaleway/Online.net:
View Price Breakdown.md

Server Price Breakdown: DigitalOcean, Amazon AWS LightSail, Vultr, Linode, OVH, Hetzner, Scaleway/Online.net:

Permalink: git.io/vps

$5/mo

Provider Type RAM Cores Storage Transfer Network Price
@omimo
omimo / index.html
Last active Mar 2, 2020
Basic Effort Actions - Entangled
View index.html
<html>
<head>
<title>
[Visualizing Movement Data with D3.js]
</title>
<script src="https://cdnjs.cloudflare.com/ajax/libs/d3/3.5.17/d3.min.js"></script>
<script src="mviz.js"></script>
<style>
* {
box-sizing: border-box
@pavelbinar
pavelbinar / subtitle-extract.md
Last active Jul 18, 2021 — forked from bmaeser/subtitle-extract.txt
Extract subtitles from .mkv files on Mac OS X
View subtitle-extract.md

Extract Subtitles From .mkv

These instructions shall work on Mac OS X and Linux.

Install mkvtoolnix (Mac OS X)

Installation via Homebrew:

brew install mkvtoolnix
@patilarpith
patilarpith / CustomCheckerBody.java
Last active Feb 3, 2018
Custom-Checker body section for list of 5 prime numbers under 100
View CustomCheckerBody.java
// Start of BODY
public class CustomChecker {
static boolean is_prime_number(int n) {
for(int i=2;i<n;i++) {
if(n%i==0)
return false;
}
return true;
@ivancorrales
ivancorrales / first-steps-with-erlang.erl
Created Jan 29, 2016
Basic example of creating a record and iterating over a list of elements.
View first-steps-with-erlang.erl
-module(poc).
-export([all/0,say_hello/1]).
-record(person,{name,genre,age}).
new_person(Name, Genre, Age) ->
#person{name=Name, genre=Genre, age=Age}.
isOlderThanAveragePeople(Age,AverageAge)->
Age>=AverageAge.
@mbbx6spp
mbbx6spp / ALTERNATIVES.adoc
Last active Jun 30, 2021
Super quick list of alternatives to Jira and/or Confluence, Stash, Crucible, etc.
View ALTERNATIVES.adoc
@joseluisq
joseluisq / terminal-git-branch-name.md
Last active Jul 22, 2021
Add Git Branch Name to Terminal Prompt (Linux/Mac)
View terminal-git-branch-name.md

Add Git Branch Name to Terminal Prompt (Linux/Mac)

image

Open ~/.bash_profile in your favorite editor and add the following content to the bottom.

# Git branch in prompt.

parse_git_branch() {
@jenslohmann
jenslohmann / toString Generator
Last active May 31, 2021
Java toString() generator for IntelliJ IDEA that generates JSON
View toString Generator
public java.lang.String toString() {
#if ( $members.size() > 0 )
#set ( $i = 0 )
return "{\"_class\":\"$classname\", " +
#foreach( $member in $members )
#set ( $i = $i + 1 )
#if ( $i == $members.size() )
#set ( $postfix = "+" )
#else
#set ( $postfix = "+ "", "" + " )