Skip to content

Instantly share code, notes, and snippets.

function endsWith(str, suffix) {
return str.indexOf(suffix, str.length - suffix.length) !== -1;
}
var fs = require('fs');
fs.readdir(process.env.PWD, function(err, files) {
if(err) throw err;
files.forEach(function(obj) {
if(endsWith(obj, '.jar')) {
fs.rename(process.env.PWD + obj, process.env.PWD + obj.substring(obj.length - 4) + process.env.BUILD_NUMBER + '.jar', function(err) {
if(err) { throw err; }
.btn {
display: inline-block;
transition-timing-function: ease;
transition-duration: 0.2s;
transition-property: background-color, color, border-color;
background-color: transparent;
padding: 8px;
border-radius: 3px;
border: 1px solid #00AACC;
color: #00AACC;
source $fish_path/plugins/archlinux/pacman/paclist.fish
if eval $is_linux
alias pkglist='paclist | less -R'
end
function search
for i in (ls)
set -l err (cat $i | grep "$argv" > /dev/null)
if [ -n $err ]
library toml;
import "package:parser/parser.dart";
class TomlParser extends CompositeParser {
@override
void initialize() {
_grammar();
_parser();
recipes.addShaped(<minecraft:ender_pearl> * 4, [[<minecraft:iron_ingot>, <minecraft:iron_ingot>], [<minecraft:iron_ingot>, <minecraft:iron_ingot>]]);

How to get Unix out of your Mac, Mac style.

Web Developement

  • You'll want to download Google Chrome Canary. Google explicitly dosen't let you set this as a default browser, but most of the time it's very stable. To set it as your default browser, open up Safari. On the top bar, go to Safari -> Preferences -> Default Web Browser. Chrome Canary should show up in the list.

Terminal Work, and most Unix-like stuff

Now, your probably coming from Linux. Will most of your command line stuff work? Absolutely. OSX is based of Darwin, which is an offical Unix-like POSIX system. Most things under the hood will work the same, a lot of the GNU tools are already installed. Also, device mounting is a little different, but that's about it.

server-redirect capability

This would create another IRC command, that would be sent from the party acting as the server (bouncer, server, etc...) to the client, and it's called REDIRECT.

REDIRECT server [create_new_server]

This will redirect the client to a new server, clarified with the server parameter. The create_new_server parameter is either YES or NO, YES if it's absent. If create_new_server is YES, the client will register a new persistent network to the server and load it. If it is NO, it will simply replace the current connection for the length of server's connection.

The REDIRECT command also has 4 tags: username, realname, nickname, and password.

multi-net Capability Extension

Copyright (c) 2014 TrainerGuy22.

The mutli-net capability would allow for clients to have different servers handled through a single connection. This functionality is intended to bring multiplexing capabilities to IRC bouncers, with rich client integration.

This will be achieved by simply adding a net tag to every message sent between the client and the server (or, as in this capability's intended functionality,

part of dartboard;
class Plugin {
final String name;
final String directoryName;
final String info;
final String version;
final String author;
part of dartboard;
class FutureGroup {
Completer _completer = new Completer();
List<Future> _futures = <Future>[];
FutureGroup();
bool add(Future future) {
if(!_futures.contains(future)) {