Skip to content

Instantly share code, notes, and snippets.

View uicoded's full-sized avatar

Jan uicoded

View GitHub Profile
@uicoded
uicoded / index.html
Created May 19, 2021 04:18
POC - Form Fieldset with stretched width 9
<!-- <form dir="rtl"> -->
<form>
<fieldset class="formgrid">
<legend>Donec ornare</legend>
<div class="nothing">
<input id="input-1" name="input-1" type="text" class="column-2" />
<label for="input-1">Vivamus a nulla</label>
@uicoded
uicoded / flex-2cols-form-fixed-label-width-and-rtl.markdown
Created February 22, 2021 13:45
Flex - 2cols form - fixed label width and RTL
@uicoded
uicoded / index.html
Created October 30, 2020 14:26
React Controlled Components (Class Syntax)
<h1>React Controlled Components (Class Syntax)</h1>
<div id="root"></div>
<p>Submit the form</p>
<p><a href="https://reactjs.org/docs/forms.html#controlled-components">Controlled Components - React Docs</a></p>
@uicoded
uicoded / simpleFileDragAndDrop.js
Created May 29, 2019 21:29 — forked from chfritz/simpleFileDragAndDrop.js
HTML5: simple file drag&drop (without upload).
/*
(MIT License)
Copyright (c) 2012 Christian Fritz
Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated documentation files (the
"Software"), to deal in the Software without restriction, including
without limitation the rights to use, copy, modify, merge, publish,
@uicoded
uicoded / macos-recovery-server.md
Last active October 16, 2018 15:52
Fixing "The recovery server could not be contacted" in MacOS High Sierra

Upgrading to High Sierra on older machines

ERROR: The recovery server could not be contacted

It appears that this has to do with the time on the machine not being synchronized, so when the MacBook tries to reach out to the recovery server the certificates do not validate and we get this useless error message.

Solution 1: Update Time

  1. Run in Terminal (possibly with sudo)

pdfmake

Use in node.js

The module on npm exposes the pdfmake Printer, which the docs themselves do not cover. Using it is pretty simple though.

var path = require('path');
var Printer = require('pdfmake');
@uicoded
uicoded / angular-jqlite.adoc
Last active March 15, 2018 22:39 — forked from esfand/angular-jqlite.adoc
Angular jqLite

Angular jqLite

jQuery and Angular

Angular doesn’t depend on jQuery. In fact, the Angular source contains an embedded lightweight alternative: jqLite. Still, when Angular detects the presence of a jQuery version in your page, it uses that full jQuery implementation in lieu of jqLite. One direct way in which this manifests itself is with Angular’s element abstraction.

@uicoded
uicoded / .block
Created February 2, 2018 22:04
OMG Particles II
license: gpl-3.0
@uicoded
uicoded / .block
Created February 2, 2018 22:04
OMG Particles!
license: gpl-3.0
@uicoded
uicoded / .block
Created February 2, 2018 22:02
DOM-to-Canvas using D3
license: gpl-3.0