Skip to content

Instantly share code, notes, and snippets.

View SiegfriedEhret's full-sized avatar
✔️
Verified account

Siegfried Ehret SiegfriedEhret

✔️
Verified account
View GitHub Profile
const fetch = require('node-fetch');
async function run() {
let username = "YOUR USERNAME HERE";
let password = "YOUR APP PASSWORD";
let authBasic = new Buffer(username + ':' + password).toString('base64');
let session = await (await fetch('https://jmap.fastmail.com/.well-known/jmap', {
headers: {
"Authorization": "Basic " + authBasic
}
})).json();
@colinbellino
colinbellino / gamedev-resources.md
Last active September 26, 2020 14:33
Game dev resources

Design:

Programming:

@jefBinomed
jefBinomed / HelperJSInCSS.js
Created November 16, 2019 21:55
Javascript class that helps you to play with Custom Properties to turn them into JS Code and to execute the code
export class HelperJsInCss{
constructor(element, customProperty, loop, args){
this.element = element
this.customProperty = customProperty
this.lastValue = undefined
this.loop = loop
this.args = args
if (loop){
window.requestAnimationFrame(this.checkElements.bind(this))
@rikukissa
rikukissa / POST.md
Last active June 12, 2024 02:39
Unit testing Angular.js app with node.js, mocha, angular-mocks and jsdom #angular.js #testing
title slug createdAt language preview
Unit testing Angular.js app with node.js, mocha, angular-mocks and jsdom
unit-testing-angular-js-app-with-node
2015-07-05T18:04:33Z
en
Majority of search result about unit testing Angular.js apps is about how to do it by using test frameworks that run the tests in a real browser. Even though it's great to be able to test your code in multiple platforms, in my opinion it creates a lot of boilerplate code and makes it hard to run the tests in, for instance a CI-server.

Testing Angular.js app headlessly with node.js + mocha

Lean unit tests with minimal setup

@MohamedAlaa
MohamedAlaa / tmux-cheatsheet.markdown
Last active November 17, 2024 01:28
tmux shortcuts & cheatsheet

tmux shortcuts & cheatsheet

start new:

tmux

start new with session name:

tmux new -s myname