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
# nvidia | |
hardware.nvidia.modesetting.enable = true; | |
services.xserver.videoDrivers = [ "nvidia" ]; | |
hardware.opengl.driSupport32Bit = true; | |
nixpkgs.config.cudaSupport = true; | |
virtualisation.docker.enableNvidia = true; | |
virtualisation.docker.extraOptions = "--add-runtime nvidia=/run/current-system/sw/bin/nvidia-container-runtime"; | |
boot.extraModulePackages = [ config.boot.kernelPackages.nvidia_x11 ]; | |
boot.kernelParams = [ "module_blacklist=i915" ]; |
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
[readme] -> [browser] | |
[browser] -> [nomnoml-service] | |
[nomnoml-service] -> [gist] | |
[nomnoml-service] -> [browser] |
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
const fs = require('fs') | |
function task(fn) { | |
const gen = fn() | |
function step(err, res) { | |
const ret = gen.next(res) | |
if (ret.done) return | |
ret.value(step) | |
} |
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
function docker-start() { | |
machine_status=$(docker-machine status) | |
if [ "Stopped" == $machine_status ] | |
then | |
docker-machine start default | |
fi | |
eval "$(docker-machine env default)" | |
} |
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
Assembly. R2-D2 | |
Asm.js. BB8 | |
Basic. Mouse Droid | |
Visual Basic 6. GNK Droid | |
C. Yoda | |
D. Light Saber | |
C++. Yoda with a Light Saber | |
Objective-C. Old Obi-Won | |
C#. Jedi Luke | |
Delphi. Lando Calrissian |
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 bash | |
################################################################################ | |
## docs | |
## | |
## http://vocore.io/wiki/index/id:13 | |
## https://wiki.openwrt.org/easy.build.macosx | |
## https://wiki.openwrt.org/doc/howto/buildroot.exigence.macosx | |
################################################################################ |
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
/* | |
Reliability and Flow Control Example | |
From "Networking for Game Programmers" - http://www.gaffer.org/networking-for-game-programmers | |
Author: Glenn Fiedler <[email protected]> | |
*/ | |
#include <iostream> | |
#include <fstream> | |
#include <string> | |
#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
#!/bin/bash | |
# server-side post-update deployment hook | |
# https://www.gnu.org/software/bash/manual/bash.html#The-Set-Builtin | |
set -e # exit immediately if anything is non-zero return | |
set -m # enable background jobs | |
set -u # undefined variables are an error | |
set -x # echo the commands while they are executed |
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
# brew install jshon | |
# npm i -g json | |
# npm i -g underscore-cli | |
json -g -c 'this.tweet.in_reply_to_screen_name' < sample.json | underscore process '_.map(data, function(value) { return { | |
valence: value.valence, | |
polarity: value.polarity, | |
user: value.tweet.user.screen_name, | |
mentions: _.map(value.tweet.entities.user_mentions, function(mention) { return mention.screen_name }) | |
}})' | underscore filter 'value.mentions.length' | underscore process '_.groupBy(data, "valence")' | jshon -e positive | underscore process '_.map(data, function(d) { |
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
<?xml version="1.0" encoding="UTF-8"?> | |
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
<plist version="1.0"> | |
<dict> | |
<key>Ansi 0 Color</key> | |
<dict> | |
<key>Blue Component</key> | |
<real>0.29803922772407532</real> | |
<key>Green Component</key> | |
<real>0.29803922772407532</real> |
NewerOlder