(by @andrestaltz)
If you prefer to watch video tutorials with live-coding, then check out this series I recorded with the same contents as in this article: Egghead.io - Introduction to Reactive Programming.
Not sure how to summarize/organize this into something useful. Some can be made into Spotify/Rdio playlists, but others are likely unavailable and some are just URLs to other services. Genre is all over the place as well...lots of ambient and classical, soundtracks, uptempo dancey stuff, rock w/ words, and even Slayer. Not sure all that can be put into one playlist that's useful for anyone. What I'm saying is, good luck! | |
fantoraygun @fantoraygun 1h | |
@jkottke some great mixes here: http://musicforprogramming.net/ | |
Andrew @jandrewc 1h | |
@jkottke "From here we go sublime" by The Field and "Alive 2007" by Daft Punk. | |
Lenny @lenny_ 1h | |
@jkottke SomaFM's Groove Salad station |
(by @andrestaltz)
If you prefer to watch video tutorials with live-coding, then check out this series I recorded with the same contents as in this article: Egghead.io - Introduction to Reactive Programming.
/** | |
* Show the activity over the lockscreen and wake up the device. If you launched the app manually | |
* both of these conditions are already true. If you deployed from the IDE, however, this will | |
* save you from hundreds of power button presses and pattern swiping per day! | |
*/ | |
public static void riseAndShine(Activity activity) { | |
activity.getWindow().addFlags(FLAG_SHOW_WHEN_LOCKED); | |
PowerManager power = (PowerManager) activity.getSystemService(POWER_SERVICE); | |
PowerManager.WakeLock lock = |
#!/bin/bash | |
cd ~/ | |
### CUDA | |
echo "\n\nChecking for CUDA and installing." | |
if ! dpkg-query -W cuda; then | |
curl -O http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1604/x86_64/cuda-repo-ubuntu1604_8.0.61-1_amd64.deb | |
sudo dpkg -i ./cuda-repo-ubuntu1604_8.0.61-1_amd64.deb | |
sudo apt-get update | |
sudo apt-get install cuda -y |
This code now lives in its own repo https://github.com/snoyberg/kids-haskell-ide
# If you, like me, have all of your various source-code-like projects in ~/src/ | |
# this is how to give yourself per-project shell history. | |
# | |
# I wish I'd done this years ago. | |
# | |
# First, in your .bashrc file, you redefine the cd, pushd and popd builtins to be "do the builtin bit, | |
# then do one other thing (set_src_history.sh, below) like so: | |
cd () { |
The following are appendices from Optics By Example, a comprehensive guide to optics from beginner to advanced! If you like the content below, there's plenty more where that came from; pick up the book!
Syncthing has awesome docs - start there if you haven't read them already. This is just a recipe to show how I set it up to have a git-versioned backup on Raspberry Pi.
Once machines are talking to each other via Syncthing add the folder through GUI, share it with another device, switch to that device and accept the incoming folder.
Let's say that the folder is ~/org
.
On the 'backup' device in Syncthing GUI, go to Folder settings > File Versioning, choose "External File Versioning" and in Command input fill in: git-backup-org %FOLDER_PATH% %FILE_PATH%
.
On the 'backup' device create the backup folder and initialize a git repository:
// ==UserScript== | |
// @name Copy text fragment URL | |
// @namespace http://tampermonkey.net/ | |
// @version 0.1 | |
// @description Copies the text fragment URL for you | |
// @author Omar Alshaker (@alshakero) | |
// @include * | |
// @grant GM.setClipboard | |
// @run-at context-menu | |
// ==/UserScript== |
diff --git a/package.json b/package.json | |
index 5ca465469c..9596f57c16 100644 | |
--- a/package.json | |
+++ b/package.json | |
@@ -80,7 +80,8 @@ | |
"@wordpress/viewport": "file:packages/viewport", | |
"@wordpress/warning": "file:packages/warning", | |
"@wordpress/widgets": "file:packages/widgets", | |
- "@wordpress/wordcount": "file:packages/wordcount" | |
+ "@wordpress/wordcount": "file:packages/wordcount", |