As configured in my dotfiles.
start new:
tmux
start new with session name:
As configured in my dotfiles.
start new:
tmux
start new with session name:
| /** | |
| * An implementation for Quicksort. Doesn't | |
| * perform as well as the native Array.sort | |
| * and also runs the risk of a stack overflow | |
| * | |
| * Tests with: | |
| * | |
| * var array = []; | |
| * for(var i = 0; i < 20; i++) { | |
| * array.push(Math.round(Math.random() * 100)); |
| task classpath << { println sourceSets.main.runtimeClasspath.asPath } |
| { fontWeight: '100' }, // Thin | |
| { fontWeight: '200' }, // Ultra Light | |
| { fontWeight: '300' }, // Light | |
| { fontWeight: '400' }, // Regular | |
| { fontWeight: '500' }, // Medium | |
| { fontWeight: '600' }, // Semibold | |
| { fontWeight: '700' }, // Bold | |
| { fontWeight: '800' }, // Heavy | |
| { fontWeight: '900' }, // Black |
| 100+ different js counter apps... |
| /* | |
| Open console. | |
| (Import https://raw.githubusercontent.com/MikeMcl/decimal.js/master/decimal.js first if you want/need number formatting) | |
| Then copy & paste this + enter, to run this. | |
| Copy console output to a NewFile.js or NewFile.jsx file. | |
| prettier --write NewFile.js | |
| */ | |
| /* eslint no-console: ["error", { allow: ["log"] }] */ | |
| /* global document, Decimal*/ | |
| (() => { |
| #version 430 | |
| #define FORCE_EARLY_Z layout(early_fragment_tests) in | |
| #extension GL_ARB_shading_language_420pack : enable | |
| #define ATTRIBUTE_LOCATION(x) | |
| #define FRAGMENT_OUTPUT_LOCATION(x) | |
| #define FRAGMENT_OUTPUT_LOCATION_INDEXED(x, y) | |
| #define UBO_BINDING(packing, x) layout(packing, binding = x) |
This is a story about how I tried to use Go for scripting. In this story, I’ll discuss the need for a Go script, how we would expect it to behave and the possible implementations; During the discussion I’ll deep dive to scripts, shells, and shebangs. Finally, we’ll discuss solutions that will make Go scripts work.
While python and bash are popular scripting languages, C, C++ and Java are not used for scripts at all, and some languages are somewhere in between.