Skip to content

Instantly share code, notes, and snippets.

View slack-black-theme.css
body { background: #222; color: #e6e6e6; }
a { color: #949494; }
a:link, a:visited { color: #949494; }
a:hover, a:active, a:focus { color: #c7c7c7; }
hr { border-bottom: 1px solid #424242; border-top: 1px solid #222; }
View bash_to_zsh_history.js
const fs = require('fs');
/**
* This script transfers bash history to zsh history
* Change bash and zsh history files, if you don't use defaults
*
* Usage: node bash_to_zsh_history.js
*
* Author: Matteo Gaggiano
*/
View nebular-ionicons.ts
import * as ion from 'ionicons/icons';
import {NbIcons} from "@nebular/theme/components/icon/icon-pack";
function map(icon: string) {
return icon.replace('data:image/svg+xml;utf8,', '');
}
export const NbIonIcons: NbIcons = {
'add': map(ion.add),
'add-circle': map(ion.addCircle),
@marchrius
marchrius / Example.java
Last active Jul 28, 2020
Maps builder utility
View Example.java
import java.util.Iterator;
import java.util.Map;
import java.util.Map.Entry;
import org.marchirus.utils.Maps;
public class Example { public static void main(String[] args) {
Maps.Builder<String, String> builder = Maps.builder();
builder.pair("Key1", "Value1")
.key("Key2").value("Value2")
View keybase.md

Keybase proof

I hereby claim:

  • I am marchrius on github.
  • I am marchrius (https://keybase.io/marchrius) on keybase.
  • I have a public key whose fingerprint is 4D58 6729 4E67 8AC7 B0C5 CA9C BC90 5688 7987 1E01

To claim this, I am signing this object: