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
// Available variables: | |
// - Machine | |
// - interpret | |
// - assign | |
// - send | |
// - sendParent | |
// - spawn | |
// - raise | |
// - actions |
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
module.exports = { | |
config: { | |
// default font size in pixels for all tabs | |
fontSize: 12, | |
// font family with optional fallbacks | |
fontFamily: 'Menlo, "DejaVu Sans Mono", "Lucida Console", monospace', | |
// terminal cursor background color and opacity (hex, rgb, hsl, hsv, hwb or cmyk) | |
cursorColor: 'rgba(248,28,229,0.8)', |
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
#include "neopixel.h" | |
#define PIXEL_COUNT 29 | |
#define PIXEL_PIN D2 | |
#define PIXEL_TYPE WS2812B | |
Adafruit_NeoPixel strip = Adafruit_NeoPixel(PIXEL_COUNT, PIXEL_PIN, PIXEL_TYPE); | |
int pos = -1; |
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
#include "neopixel.h" | |
#define PIXEL_COUNT 29 | |
#define PIXEL_PIN D2 | |
#define PIXEL_TYPE WS2812B | |
Adafruit_NeoPixel strip = Adafruit_NeoPixel(PIXEL_COUNT, PIXEL_PIN, PIXEL_TYPE); | |
void setup() { | |
strip.begin(); | |
strip.show(); |
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 'withApi' from './withApi.js' | |
const Cat = ({cat}) => <span>{cat.name} says {cat.purr}</span> | |
const enhance = withApi(props => ({ | |
cat: `/api/cat/${props.id}` | |
})) | |
export default enhance(Cat) |
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
// ==UserScript== | |
// @name its-karakterpoeng | |
// @namespace http://your.homepage/ | |
// @version 0.8 | |
// @description enter something useful | |
// @author You | |
// @match http*://hfk.itslearning.com/* | |
// @grant unsafeWindow | |
// @run-at context-menu | |
// ==/UserScript== |
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 promiseGate(test) { | |
return function promiseGateResolver(value) { | |
return test(value).then(function(passedTest) { | |
if (!passedTest) throw new Error(test.name + ' failed'); | |
return value; | |
}) | |
} | |
}; | |
function checkLength(file) { |
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
# The designer is dead, long live design | |
Design is a hotter subject than ever before. Apple is the most successful company in history, fueled by design, and the subsequent "design thinking" philosophy. | |
The concept of "design" is a far too important thing to be left to a designer. The designer is dead. | |
Long live design. | |
Design is a misunderstood practice, and one that I misunderstood for a long time myself. Being a developer – in itself a misunderstood practice for most as well – I long thought that we needed designers to design the stuff we were building. I expected upon the poor designers to produce blueprints for what we were building. | |
We often see clients reach out to us to buy a UX revamp, or some design touches, on their applications, websites or other visual properties. | |
Many think that the visual expression designed by the previous designer 5 years back is a replaceable skin with few ties into the application, or anything deeper. |
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
<section class="feed"> | |
<div class="feed__item"> | |
<div class="feed__item__image"> | |
<img src="https://pbs.twimg.com/profile_images/378800000703912809/95cb11a8f7c2832b5de07055e3ff66b2.png"> | |
</div> | |
<div class="feed__item__content"> | |
<h2>Marius Hauken</h2> | |
<p>Naming CSS-classes sucks, but it's worth doing properly and think a lot about!</p> | |
</div> | |
<time class="feed__item__desc">03.03</time> |
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
async.auto({ | |
get_data: function(callback){ | |
console.log('in get_data'); | |
// async code to get some data | |
callback(null, 'data', 'converted to array'); | |
}, | |
make_folder: function(callback){ | |
console.log('in make_folder'); | |
// async code to create a directory to store a file in | |
// this is run at the same time as getting the data |
NewerOlder