Skip to content

Instantly share code, notes, and snippets.

View keevie's full-sized avatar
🐤

Daniel Dyssegaard Kallick keevie

🐤
View GitHub Profile
function fill(name) {
const rooms = document.querySelectorAll('.sidebar .table');
if (name) {
var room = [...rooms].find(r => r.innerHTML.match(name));
} else {
var room = rooms[Math.random() * rooms.length | 0];
}
let seat = room.querySelector('.participant.is-empty');
if (!seat) {
const oldSeat = room.querySelector('.participant');
const test = async () => {
const db = await getConnection();
const docs = db.collection('docs');
const doc = {
id: 'test',
list: [
{ id: 2, color: 'red' },
{ id: 1, color: 'green' },
{ id: 3, color: 'blue' },
a52dec
aalib
accounts-qml-module
accountsservice
acl
acpi
adobe-source-code-pro-fonts
adwaita-icon-theme
alacritty
alsa-card-profiles
const roadIsEmpty = (road) => {
return road.every((space) => space.length === 0);
};
const takePicture = (road) => {
const frame = [];
for (const space of road) {
if (space.length) {
frame.push("x");
const nodeClasses = `
some-constant-class
some-other-constant-class
${perspective}
container level-${level}
${targeted}
${noLabel}
${selected}
${dragging}
${placeholder}
@import './colors.scss';
node {
@import './node.scss';
@import './child-nodes.scss';
}
return responseData.map(suggestion => {
return {
title: suggestion.title,
value: (
<MenuItem
description={suggestion.description}
library_name={suggestion.library_name}
external_identifier={suggestion.external_identifier}
style={{ border: 0, lineHeight: 1 }}
>
~/a/facespace ❯❯❯ git status ⏎ posts ✭ ═
On branch posts
Unmerged paths:
(use "git reset HEAD <file>..." to unstage)
(use "git add/rm <file>..." as appropriate to mark resolution)
deleted by us: frontend/components/img_upload_modal.jsx
~/a/facespace ❯❯❯ git stash list posts ✭ ═
stash@{0}: WIP on wall: 88570f8 much progress, still not quite working
stash@{1}: WIP on posts: 1b3063b begin the posts feature
stash@{2}: WIP on posts: 1b3063b begin the posts feature
stash@{3}: WIP on wall: 4ddb6d7 Merge branch 'master' into wall
stash@{4}: WIP on wall: 0c22f96 add profileurl column to database and validation to model
stash@{5}: WIP on errors: 9eb5988 add error popups and icons, not fully working yet
~/a/facespace ❯❯❯ git stash apply posts posts ✭ ═
'posts' is not a stash-like commit
~/a/facespace ❯❯❯ git stash apply 1
function fizzBuzz(array) {
let array_length = array.length;
let new_array = []
for (var i = 0; i < array_length; i++) {
if ( array[i] % 15 === 0 ) {
continue
} else if ( array[i] % 5 === 0 ) {
new_array.push(array[i])
} else if ( array[i] % 3 === 0 ) {
new_array.push(array[i])