This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
%word=$0- | |
say Acronym for $b%word$b":" | |
exec("for w in `echo '$str.lowcase(%word)' | grep -o .`; do grep ^\$w /usr/share/dict/words | shuf | head -n1; done | perl -pe 's/^(.)/\\u\\1/g' | perl -pe 's/\n/ /g' | perl -pe 's/$/\n/'") {say $1;} | |
#replace /usr/share/dict/words with any word list |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <iostream> | |
#include <cmath> | |
#include <fstream> | |
using namespace std; | |
string unita[10] = {"","uno","due","tre","quattro","cinque","sei","sette","otto","nove"}; | |
string decine[10] = {"","dieci","venti","trenta","quaranta","cinquanta","sessanta","settanta","ottanta","novanta"}; | |
string teen[10] = {"","undici","dodici","tredici","quattordici","quindici","sedici","diciassette","diciotto","diciannove"}; | |
string una (int num) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if (!$0) { | |
echo Usage: /compareusers #chanA [#chanB] | |
echo If no #chanB is provided, use current chan | |
halt | |
} | |
%chana = $0 | |
if (!$1) { | |
if ($window.type != "channel") { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
grep $1 /usr/bin/izastuff/anagram-dict/italiano | grep -E "^.{1,$2}$" | sillacalc ${*:3} | sort -nr | head |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# not so fast but nicknames are pretty | |
nick=$(grep -E "^[a-zA-Z]{3,5}$" /usr/share/dict/words | shuf | head -n2 | tr -d "\n") | |
num=$(seq 10 99 | shuf | head -n1) | |
fullnick=$nick$num | |
echo $fullnick |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <iostream> | |
#include <fstream> | |
#include <vector> | |
using namespace std; | |
int inwhich (string tofind, vector<string> options) { | |
for (unsigned int i = 0; i < options.size(); i++) if (options[i].find(tofind) != string::npos) return i; | |
return -1; | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
all: | |
g++ -march=native -Ofast -o ulam ulam.cpp | |
g++ -march=native -Ofast -fopenmp -o ompulam ompulam.cpp |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if ($0) { | |
%message = "==> $0-" | |
} | |
if ($window.type != "channel") { | |
echo Must be in a channel | |
halt | |
} | |
%call = "" | |
foreach (%user, $chan.users) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
for i in {1..64}; do trap "signal $i" "$i" ; done | |
signal () { | |
echo "Caught signal: $(kill -l "$1")" | |
echo "Value: $1" | |
} | |
while :; do :; done |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# NAME | |
# pgrep, pkill - find or signal processes by name and other attributes | |
# | |
# SYNOPSIS | |
# pgrep [-glpfao] pattern | |
# pkill [-glpfao] [-s SIG] pattern | |
# | |
# DESCRIPTION |