A quick visual reference to every ColorBrewer scale; colors by Cynthia Brewer. Available in CSS and JS format. Click on a palette to log the constituent colors in hexadecimal RGB to the console.
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
// Use the axis in the initialize method of your BarChart, like this: | |
d3.chart('BarChart', { | |
initialize: function() { | |
... | |
chart.xAxis = this.base.select('g').append('g').chart('xAxis', {parent: this}); | |
this.attach('axis', chart.xAxis); | |
} | |
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 fs = require('fs'), | |
walk = require('walk'), | |
path = require('path'), | |
mm = require('musicmetadata'); | |
walker = walk.walk('/Users/leetreveil/Music/Mine', { followLinks : false }); | |
walker.on('file', function(root, fileStats, next) { | |
if (/^.*\.(mp3|m4a|flac|ogg)/.test(fileStats.name)) { | |
var fullPath = path.join(root, fileStats.name); |
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
// Warning: Lights made with this script can not be saved! | |
var lightEffect = EffectCollection.FindEffect("Flood Light Orange") as LightEffect; | |
// Final position in prop | |
Vector3 pos = new Vector3(0f,10f,0f); | |
// this would be in the center of the prop, 10m above ground | |
// Final direction in prop | |
Vector3 dir = new Vector3(0f,1f,0f); |
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
window.onerror = (function(old) { | |
return function() { | |
var args = [].slice.call(arguments); | |
for (var i = 0, l = arguments.length; i < l; i++) { | |
if (args[i] instanceof Error) { | |
window._errs.push(args[i]); | |
} |
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
/** | |
* HomeController | |
* | |
* @module :: Controller | |
* @description :: Contains logic for handling requests. | |
*/ | |
module.exports = { | |
index: function (req,res) { |
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
As I described in my last post (http://tuhrig.de/difference-between-save-and-export-in-docker), there are two ways to persist a Docker images or container: | |
A Docker image can be saved to a tarball and loaded back again. This will preserve the history of the image. | |
# save the image to a tarball | |
docker save <IMAGE NAME> > /home/save.tar | |
# load it back | |
docker load < /home/save.tar | |
A Docker container can be exported to a tarball and imported back again. This will not preserve the history of the container. |
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
// This is the equivalent of the old waitsFor/runs syntax | |
// which was removed from Jasmine 2 | |
waitsForAndRuns = function(escapeFunction, runFunction, escapeTime) { | |
// check the escapeFunction every millisecond so as soon as it is met we can escape the function | |
var interval = setInterval(function() { | |
if (escapeFunction()) { | |
clearMe(); | |
runFunction(); | |
} | |
}, 1); |
So I was thinking about how I never respond to recruiter emails, and how their way of try to appeal to me is a bit lacking: work on some framework, create a new framework, be a senior dev/cto, etc.
I was just thinking a bitabout how companies can change to better support open source, so why not respond back with some suggestions?
Can suggest:
- donating to projects via Open Collective
- having developer time to contribute back to open source
kops cluster config
kubeAPIServer:
authorizationMode: RBAC
authorizationRbacSuperUser: admin
oidcCAFile: /srv/kubernetes/ca.crt
oidcClientID: example
oidcGroupsClaim: groups
oidcIssuerURL: https://dex.example.com
oidcUsernameClaim: email
OlderNewer