This file contains 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
# Maintainer: Marcel Korpel <marcel[dot]korpel[at]gmail> | |
# Contributor: Renan Birck <renan.ee.ufsm at gmail.com> | |
pkgname=logisim-evolution | |
_truepkgname=logisim | |
pkgver=2.13.8 | |
pkgrel=1 | |
provides=('logisim') | |
conflicts=('logisim') | |
pkgdesc='An educational tool for designing and simulating digital logic circuits' |
This file contains 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 python2 | |
# Specifically, using python 2 | |
# Make a pics/ directory and put your pictures in there | |
# Make a text/ directory and put your text files in there to train the markov model | |
# requires markovify and pytumblr | |
import markovify | |
import pytumblr | |
import time, os, os.path, random | |
client = pytumblr.TumblrRestClient( |
This file contains 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
# pacman aliases | |
alias pac='pacman -S' # install | |
alias pacu='pacman -Syu' # update, add 'a' to the list of letters to update AUR packages if you use yaourt | |
alias pacr='pacman -Rs' # remove | |
alias pacs='pacman -Ss' # search | |
alias paci='pacman -Si' # info | |
alias paclo='pacman -Qdt' # list orphans | |
alias pacro='paclo && sudo pacman -Rns $(pacman -Qtdq)' # remove orphans | |
alias pacc='pacman -Scc' # clean cache | |
alias paclf='pacman -Ql' # list files |
This file contains 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
using System; | |
using System.Collections.Generic; | |
namespace coloroutput | |
{ | |
class MainClass | |
{ | |
public const ConsoleColor DEFAULT = ConsoleColor.White; | |
public static void Main (string[] args) |
This file contains 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/python2 | |
""" | |
author: Alek Ratzloff | |
Client that connects to the server and sends it commands. | |
""" | |
from socket import * | |
PORT = 65000 |
This file contains 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
/* | |
* to compile: first run | |
* javac *.java -classpath $(hadoop classpath) | |
* | |
* then run | |
* jar cf config-printer.jar *.class | |
* | |
* To use it, run | |
* hadoop jar config-printer.jar ConfigPrinter | |
*/ |
This file contains 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
__author__ = 'Alek Ratzloff <[email protected]>' | |
from socket import socket | |
class ThinClient: | |
""" | |
Python client used for doing stuff... Thinly | |
""" | |
def __init__(self, port, host="127.0.0.1", recv_size=1024): |
This file contains 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
# Maintainer: Alucryd <alucryd at gmail dot com> | |
# Contributor: Stefan Husmann <stefan-husmann at t-online dot de> | |
# Contributor: Simon Lipp <sloonz+aur at gmail dot com> | |
# Contributor: Alek Ratzloff <alekratz+aur at gmail dot com> | |
pkgname=javahelp2 | |
pkgver=2.0.05 | |
pkgrel=1 | |
pkgdesc="Java based help system" | |
arch=('any') |
This file contains 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 | |
# Automatic Image file resizer | |
# Written by SirLagz | |
# Fixed and cleaned by Alek Ratzloff <[email protected]> | |
if [[ ! $(whoami) =~ "root" ]]; then | |
echo "" | |
echo "**********************************" | |
echo "*** This should be run as root ***" | |
echo "**********************************" |
This file contains 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
template<typename T> | |
T parse_radix(const std::string& str, i32 radix) | |
{ | |
assert("provided radix is not between the supported range of 2 and 36" && radix >= 2 && radix <= 36); | |
T result = 0; | |
auto get_radix_map = [](i32 radix) -> std::map<char, T> | |
{ | |
typedef std::pair<char, T> pair_t; |
OlderNewer