Skip to content

Instantly share code, notes, and snippets.

View make-github-pseudonymous-again's full-sized avatar

Notas Hellout make-github-pseudonymous-again

  • Joined on Sep 24, 2012
View GitHub Profile
def willitfloat(s):
try:
float(s)
return True
except ValueError:
return False
@make-github-pseudonymous-again
make-github-pseudonymous-again / README.md
Last active August 29, 2015 14:01 — forked from GerHobbelt/.gitignore
D3.js undirected multigraph where you can add nodes, links and delete them

Derived from the D3.js example gist 3616279.

Features

  • undirected multigraph where you can add nodes, links and delete them

Usage

@make-github-pseudonymous-again
make-github-pseudonymous-again / helloworld-trigo.py
Last active August 29, 2015 14:07
helloworld using the sine and cosine function
from math import *
def f(x):
return int(round(96.75 + -21.98*cos(x*1.118) + 13.29*sin(x*1.118) + -8.387*cos(2*x*1.118)\
+ 17.94*sin(2*x*1.118) + 1.265*cos(3*x*1.118) + 16.58*sin(3*x*1.118)\
+ 3.988*cos(4*x*1.118) + 8.463*sin(4*x*1.118) + 0.3583*cos(5*x*1.118)\
+ 5.878*sin(5*x*1.118)))
print "".join([chr(f(x)) for x in range(12)])
@make-github-pseudonymous-again
make-github-pseudonymous-again / emplace-tuple-piecewise.cpp
Created October 7, 2014 02:13
en.cppreference.com example for emplace construction in unordered maps
#include <iostream>
#include <utility>
#include <unordered_map>
int main(){
std::unordered_map<std::string, std::string> m;
// uses pair's copy-constructor
m.emplace(std::make_pair(std::string("a"), std::string("a")));
__mergesort__ = require( "./sort/mergesort.js").__mergesort__
tapemerge = require("./merge/tapemerge.js").tapemerge
mergesort = __mergesort__(tapemerge)
asc = function ( a , b ) { return a < b ? -1 : a > b ? 1 : 0 ; }
gen = function ( n ) { var a = [] ; var i = n ; while ( i-- ) { a.push(Math.random()) } ; return a ; }

Keybase proof

I hereby claim:

  • I am aureooms on github.
  • I am aureooms (https://keybase.io/aureooms) on keybase.
  • I have a public key whose fingerprint is 842C 827C 3BC2 E3E5 0AC2 5D2F B795 F563 72A5 A850

To claim this, I am signing this object:

@make-github-pseudonymous-again
make-github-pseudonymous-again / mirrorlist
Created January 19, 2016 11:44
Mirror list for pacman that fix the release to a specific day
##
## Example for October 6, 2015
##
Server = http://ala.seblu.net/repos/2015/10/06/$repo/os/$arch
@make-github-pseudonymous-again
make-github-pseudonymous-again / chroot-then-mkinitcpio.sh
Created January 19, 2016 22:07
How to use mkinitcpio after using chroot
mount /dev/sda2 /mnt/sda2
chroot /mnt/sda2
mount -t proc proc /proc
mount -t sysfs sys /sys
mount -t devtmpfs udev /dev
mkinitcpio -p linux
@make-github-pseudonymous-again
make-github-pseudonymous-again / log.txt
Created January 30, 2016 11:37
pacman: solving signature from "..." is unknown trust
$ sudo pacman -Syu
:: Synchronizing package databases...
core 122.5 KiB 2042K/s 00:00 [-----------------------------------------------] 100%
extra 1763.9 KiB 5.94M/s 00:00 [-----------------------------------------------] 100%
community 3.3 MiB 5.78M/s 00:01 [-----------------------------------------------] 100%
:: Starting full system upgrade...
resolving dependencies...
looking for conflicting packages...
(51/51) checking keys in keyring [-----------------------------------------------]
(51/51) checking package integrity [-----------------------------------------------] 100%
@make-github-pseudonymous-again
make-github-pseudonymous-again / PKGBUILD
Last active January 30, 2016 11:55
astroid with maildir flags synchronization
pkgname=astroid
pkgver=v0.4.r236.g68dd9ba
pkgrel=1
epoch=
pkgdesc="a graphical threads-with-tags style, lightweight and fast, email client for notmuch, inspired by sup and others"
arch=('x86_64' 'i686')
url="https://github.com/ff2000/astroid"
license=('GPL')
groups=()
depends=('notmuch' 'boost' 'boost-libs' 'gmime' 'gtkmm3' 'webkitgtk' 'gvim' 'libsass')