Skip to content

Instantly share code, notes, and snippets.

View floede's full-sized avatar

Janus Hasseriis floede

  • Copenhagen
View GitHub Profile
@floede
floede / input.scss
Created March 13, 2024 12:23
Generated by SassMeister.com.
$base-class: "anchor-u-typography";
// The attribute selector catches all our paragraph classes
[class^='#{$base-class}__paragraph'] {
font-size: var(--s-size-text-default);
font-family: var(--s-font-family-paragraph), "trebuchet ms", sans-serif;
line-height: var(--s-size-line-height-paragraph);
}
.#{$base-class}__paragraph {
@floede
floede / toggle.js
Created July 5, 2018 13:33 — forked from chodorowicz/toggle.js
lodash toggle array element
/**
* descructive
* https://github.com/lodash/lodash/issues/1677
*/
function toggle(collection, item) {
var idx = _.indexOf(collection, item);
if(idx !== -1) {
collection.splice(idx, 1);
} else {
collection.push(item);

Keybase proof

I hereby claim:

  • I am floede on github.
  • I am floede (https://keybase.io/floede) on keybase.
  • I have a public key ASBlbzV4ZelEg1sPHmF4g6qoVjMBZi2HWt22bFJYDQ108Qo

To claim this, I am signing this object:

@floede
floede / index.js
Created November 20, 2017 10:12
requirebin sketch
// Welcome! require() some modules from npm (like you were using browserify)
// and then hit Run Code to run your code on the right side.
// Modules get downloaded from browserify-cdn and bundled in your browser.
parseDecimalNumber = require('parse-decimal-number');
console.log(parseDecimalNumber('12,345,678.90'));
@floede
floede / 0_reuse_code.js
Created September 18, 2017 12:35
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
@floede
floede / video-chat.js
Created May 4, 2016 12:03
Selenium test
var date = new Date();
var time = date.getTime();
var testTitle = 'Test-Video-' + time;
var guestName = 'Test Guest ' + time;
describe('Opret video-chat', function() {
it('opretter en video-chat', function(){
browser.url('http://localhost:3000/taet-paa/admin');