Skip to content

Instantly share code, notes, and snippets.

Avatar
😃
😀

Manfred Touron moul

😃
😀
View GitHub Profile
@pizzafox
pizzafox / four.js
Last active Oct 19, 2020
Get the value 4 in Node.js
View four.js
const four = () => process.toString().big().endsWith(String.fromCharCode(18 + ((process.toString().substring(1, 2).charCodeAt(Number.MIN_VALUE)) * 4) - Math.pow(20, 2))).toString().length;
console.log(four()); // 4
const assert = require("assert");
const fourButReadable = () => {
// String that contains an o as the second character
const objectInString = process.toString();
assert.strictEqual(objectInString, "[object process]");
@wsargent
wsargent / docker_cheat.md
Last active Oct 10, 2020
Docker cheat sheet
View docker_cheat.md
View web-of-trust.md

A pseudonymous trust system for a decentralized anonymous marketplace

Dionysis Zindros, National Technical University of Athens dionyziz@gmail.com

Keywords

pseudonymous anonymous web-of-trust identity trust bitcoin namecoin proof-of-burn timelock decentralized anonymous marketplace openbazaar

Abstract

@jedy
jedy / go_scp.go
Last active Jul 16, 2020
an example of scp in golang
View go_scp.go
// https://blogs.oracle.com/janp/entry/how_the_scp_protocol_works
package main
import (
"fmt"
"golang.org/x/crypto/ssh"
)
const privateKey = `content of id_rsa`
@mathieue
mathieue / udp-multi-socat.sh
Created Aug 28, 2012
udp multiplexer with socat
View udp-multi-socat.sh
socat - udp4-listen:8125,fork | tee >(socat - udp-sendto:127.0.0.1:8135) >(socat - udp-sendto:127.0.0.1:8140)
@jdiaz5513
jdiaz5513 / ascii_arty.py
Last active Jul 7, 2020
Console ASCII Art Generator
View ascii_arty.py
#! /usr/bin/env python2
# Requires: PIL, colormath
#
# Improved algorithm now automatically crops the image and uses much
# better color matching
from PIL import Image, ImageChops
from colormath.color_conversions import convert_color
from colormath.color_objects import LabColor
from colormath.color_objects import sRGBColor as RGBColor
@moul
moul / 1. intro.txt
Last active Jun 29, 2020
Yo! 👋👋
View 1. intro.txt
+ -== ==|
( <*> <*> ||//
| | yo _||/__
| __| \| |||
| +++ \ /
View Dealing with issues.md

Dealing with issues

Try to reproduce issues

Go through the new issues and try to reproduce them. It’s important to get additional info, logs, and test if an issue occurs on different platforms. That helps us identify the source of the problem.

Triage issues

  • if there’s more info needed, ask the reporter to use the issue template
  • assign relevant labels
@drewjoh
drewjoh / custom.js
Created Jan 27, 2012
Dynamic (AJAX) loaded Bootstrap Modal (Bootstrap 2.1)
View custom.js
$(document).ready(function() {
// Support for AJAX loaded modal window.
// Focuses on first input textbox after it loads the window.
$('[data-toggle="modal"]').click(function(e) {
e.preventDefault();
var url = $(this).attr('href');
if (url.indexOf('#') == 0) {
$(url).modal('open');
} else {
View person.ajs
// Alternative JavaScript Syntax
Person = :(name, address) { @name!, @address! }
Person::inspect = :{ <: "{@name} lives at {@address}" }
tj := Person('TJ', '314 Bessborough ave')
bob := Person('Bob', 'Some place')
[tj, bob].each(:(person){ print(person.inspect()) })
You can’t perform that action at this time.