Skip to content

Instantly share code, notes, and snippets.

View larssonandreas's full-sized avatar
🤖

Andreas L larssonandreas

🤖
View GitHub Profile
@larssonandreas
larssonandreas / async-await.js
Created October 18, 2017 11:55 — forked from wesbos/async-await.js
Simple Async/Await Example
// 🔥 Node 7.6 has async/await! Here is a quick run down on how async/await works
const axios = require('axios'); // promised based requests - like fetch()
function getCoffee() {
return new Promise(resolve => {
setTimeout(() => resolve('☕'), 2000); // it takes 2 seconds to make coffee
});
}
<description>&lt;![CDATA[
&lt;p&gt;Teemme yhteistyötä useiden Oulun alueen elektroniikka-alan yritysten kanssa.&lt;/p&gt;&lt;p&gt;Haemme nyt asiakkaillemme ELEKTRONIIKKA-ALAN OSAAJIA määräaikaisiin työsuhteisiin.&lt;/p&gt;&lt;br/ &gt;&lt;p&gt;Odotamme sinulta:&lt;/p&gt;&lt;p&gt;&amp;bull; Aikaisempaa kokemusta vastaavista tehtävistä&lt;br /&gt;&amp;bull; Alan koulutus katsotaan hyväksi mutta ei ole pakollinen&lt;br /&gt;&amp;bull; Oma-aloitteista ja tarkkaa työotetta&lt;br /&gt;&amp;bull; Juotostaito ja IPC-laatuvaatimusten tuntemus on iso etu&lt;br /&gt;&amp;bull; Nuhteetonta taustaa, sillä tehtävään valituille saatetaan teettää suppea turvallisuusselvitys&lt;/p&gt;&lt;p&gt;Tarjoamme sinulle:&lt;br /&gt;&amp;bull; Mahdollisuuden työskennellä omien mieltymysten mukaan joko osa-aikaisesti tai kokoaikaisesti&lt;br /&gt;&amp;bull; Työtä erittäin mielenkiintoisissa yrityksissä&lt;br /&gt;&amp;bull; Työehtosopimuksen mukaisen palkkauksen&lt;/p&gt;&lt;br/ &gt;&lt;p&gt;Työ sisältää pääasiallisesti erilaisia koontate
var Avanza = require("avanza")
const avanza = new Avanza()
avanza.authenticate({
username: 'draghimario',
password: 'cashisking1337'
}).then(() => {
avanza.getPositions().then(positions => {
console.log(positions);
@larssonandreas
larssonandreas / latency.txt
Created January 31, 2017 15:29 — forked from jboner/latency.txt
Latency Numbers Every Programmer Should Know
Latency Comparison Numbers
--------------------------
L1 cache reference 0.5 ns
Branch mispredict 5 ns
L2 cache reference 7 ns 14x L1 cache
Mutex lock/unlock 25 ns
Main memory reference 100 ns 20x L2 cache, 200x L1 cache
Compress 1K bytes with Zippy 3,000 ns 3 us
Send 1K bytes over 1 Gbps network 10,000 ns 10 us
Read 4K randomly from SSD* 150,000 ns 150 us ~1GB/sec SSD

What I Wish I'd Known About Equity Before Joining A Unicorn

Disclaimer: This piece is written anonymously. The names of a few particular companies are mentioned, but as common examples only.

This is a short write-up on things that I wish I'd known and considered before joining a private company (aka startup, aka unicorn in some cases). I'm not trying to make the case that you should never join a private company, but the power imbalance between founder and employee is extreme, and that potential candidates would

Adyen Test Card Numbers
These cards are only valid on our TEST system and they will never involve any actual transaction or transfer of funds. The TEST card numbers will not work on the Adyen LIVE Platform.
For all cards use the following expiration and CVV2/CVC2/or CID for Amex.
For all cards:
Expiration Dates CVV2 / CVC3 CID (American Express)
06/2016 OR 08/2018 737 7373