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
import java.util.Optional; | |
import java.util.function.Function; | |
import java.util.function.Supplier; | |
import manifold.ext.api.Extension; | |
import manifold.ext.api.This; | |
/** | |
* Extends {@link Optional<T>} with two new methods for acquiring values. | |
*/ |
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
Latency Comparison Numbers (~2012) | |
---------------------------------- | |
L1 cache reference 0.5 ns | |
Branch mispredict 5 ns | |
L2 cache reference 7 ns 14x L1 cache | |
Mutex lock/unlock 25 ns | |
Main memory reference 100 ns 20x L2 cache, 200x L1 cache | |
Compress 1K bytes with Zippy 3,000 ns 3 us | |
Send 1K bytes over 1 Gbps network 10,000 ns 10 us | |
Read 4K randomly from SSD* 150,000 ns 150 us ~1GB/sec SSD |
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
# ignore tests | |
tests/ export-ignore |
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
/* | |
* Copyright (c) 2009-2016 jMonkeyEngine | |
* All rights reserved. | |
* | |
* Redistribution and use in source and binary forms, with or without | |
* modification, are permitted provided that the following conditions are | |
* met: | |
* | |
* * Redistributions of source code must retain the above copyright | |
* notice, this list of conditions and the following disclaimer. |
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
/* | |
* Copyright (c) 2016 Sebastian Teumert (<http://teumert.net>) | |
* | |
* Permission is hereby granted, free of charge, to any person obtaining a copy | |
* of this software and associated documentation files (the "Software"), to deal | |
* in the Software without restriction, including without limitation the rights | |
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | |
* copies of the Software, and to permit persons to whom the Software is | |
* furnished to do so, subject to the following conditions: | |
* |
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
/* | |
* written by Sebastian Teumert in 2016. | |
* Released into Public Domain. No Rights Reserved. | |
*/ | |
#include "stdafx.h" | |
#include <string> | |
#include<map> | |
#include<vector> |
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
.var { | |
text-align: right; | |
} | |
.foo { | |
content: "a"; | |
} | |
.foo:before { | |
color: green; | |
} | |
.foo:before { |
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 | |
# | |
# Build script for WoltLab Community Framework (WCF) packages | |
# by Sebastian Teumert (http://www.teumert.net, http://github.com/NetzwergX) | |
# clear | |
if ls *.tar > /dev/null 2>&1 | |
then | |
rm *.tar | |
fi |
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 | |
for dir in ~/git/com.woltlab.wcf.*/ | |
do | |
test -e ${dir}files && cp -r -s --remove-destination ${dir}files/* ./wcf/ | |
test -e ${dir}templates && cp -r -s --remove-destination ${dir}templates/* ./wcf/templates/ | |
test -e ${dir}acptemplates && cp -r -s --remove-destination ${dir}acptemplates/* ./wcf/acp/templates/ | |
done | |
wcffiles="~/git/WCF/wcfsetup/install/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
#!/bin/sh | |
# | |
# GIT Repository update script by Sebastian Teumert | |
# | |
# Stashes local changes, checks out specified branch, pulls branch from origin | |
# and pushes to upstream. | |
# | |
# Used to keep forks synced with their origin | |
# | |
# When no argument is specified, this script works in pwd, works on the 'master'- |