Skip to content

Instantly share code, notes, and snippets.

View irudoy's full-sized avatar
💭
🦔

irudoy

💭
🦔
View GitHub Profile
@irudoy
irudoy / samsung-ml1920-cups-rpi.md
Last active May 21, 2022 16:02
Set up Samsung ML-1910 Printer (or similar) with CUPS on Raspberry Pi

Set up Samsung ML-1910 Printer (or similar) with CUPS on Raspberry Pi

Install and configure CUPS

sudo apt install cups
sudo usermod -a -G lpadmin pi
sudo cupsctl --remote-any
sudo cupsctl --share-printers

sudo lpinfo -v # should show your USB-connected printer
@irudoy
irudoy / schema.json
Last active February 28, 2022 13:19
{
"$schema": "http://json-schema.org/draft-06/schema#",
"type": "object",
"properties": {
"associations": {
"type": "array",
"items": {
"type": "object",
"properties": {
"overview": {
@irudoy
irudoy / hi.md
Created February 18, 2021 05:20

/ᐠ。‸。ᐟ\

@irudoy
irudoy / depsToImport.js
Last active April 4, 2019 15:06
BEM deps to import
function depsToImport(deps) {
const uniq = a => [...new Set(a)];
return Object.values(
deps
.map(({ block, ...rest }) => ({ block: Array.isArray(block) ? block[0] : block, ...rest }))
.reduce((res, { block, elem, mod, val }) => {
const key = elem ? `${block}__${elem}` : block;
const cur = res[key] || {};
return {
...res,
@irudoy
irudoy / fotorama.umd.min.js
Created February 26, 2016 07:04
Fotorama 4.6.4 UMD
/*!
* Fotorama 4.6.4 | http://fotorama.io/license/
*/
fotoramaVersion="4.6.4",function(a){"function"==typeof define&&define.amd?define(["jquery"],a):"object"==typeof module&&module.exports?module.exports=function(b,c){return void 0===c&&(c="undefined"!=typeof window?require("jquery"):require("jquery")(b)),a(c),c}:a(jQuery)}(function(a){function b(b){var c="bez_"+a.makeArray(arguments).join("_").replace(".","p");if("function"!=typeof a.easing[c]){var d=function(a,b){var c=[null,null],d=[null,null],e=[null,null],f=function(f,g){return e[g]=3*a[g],d[g]=3*(b[g]-a[g])-e[g],c[g]=1-e[g]-d[g],f*(e[g]+f*(d[g]+f*c[g]))},g=function(a){return e[0]+a*(2*d[0]+3*c[0]*a)},h=function(a){for(var b,c=a,d=0;++d<14&&(b=f(c,0)-a,!(Math.abs(b)<.001));)c-=b/g(c);return c};return function(a){return f(h(a),1)}};a.easing[c]=function(a,c,e,f,g){return f*d([b[0],b[1]],[b[2],b[3]])(c/g)+e}}return c}function c(){}function d(a,b,c){return Math.max(isNaN(b)?-(1/0):b,Math.min(isNaN(c)?1/0:c,a))}function e(a){return a.match(/ma/)&&a.match(/-
<a href="#">
<svg version="1.1" class="arrow" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" width="19px" height="19px" viewBox="0 0 19 19" xml:space="preserve">
<g class="arrow-left">
<circle class="arrow-bg" cx="9.5" cy="9.5" r="9.5"/>
<polyline class="arrow-angle" points="11.32,12.965 9.556,11.233,7.68,9.5 9.5,7.767 11.32,6.035"/>
</g>
</svg>
</a>
<a href="#">
<style>
.rg-overlay {
pointer-events: none;
}
.right-panel {
overflow: auto;
position: fixed;
right: 20px;
height: 80%;
javascript:(function()%7B(function()%7Bvar el%3Ddocument.createElement(%27div%27),b%3Ddocument.getElementsByTagName(%27body%27)%5B0%5D%3Botherlib%3Dfalse,msg%3D%27%27%3Bel.style.position%3D%27fixed%27%3Bel.style.height%3D%2732px%27%3Bel.style.width%3D%27220px%27%3Bel.style.marginLeft%3D%27-110px%27%3Bel.style.top%3D%270%27%3Bel.style.left%3D%2750%25%27%3Bel.style.padding%3D%275px 10px%27%3Bel.style.zIndex%3D1001%3Bel.style.fontSize%3D%2712px%27%3Bel.style.color%3D%27%23222%27%3Bel.style.backgroundColor%3D%27%23f99%27%3Bfunction getScript(url,success)%7Bvar script%3Ddocument.createElement(%27script%27)%3Bscript.src%3Durl%3Bvar head%3Ddocument.getElementsByTagName(%27head%27)%5B0%5D,done%3Dfalse%3Bscript.onload%3Dscript.onreadystatechange%3Dfunction()%7Bif(!done%26%26(!this.readyState%7C%7Cthis.readyState%3D%3D%27loaded%27%7C%7Cthis.readyState%3D%3D%27complete%27))%7Bdone%3Dtrue%3Bsuccess()%3Bscript.onload%3Dscript.onreadystatechange%3Dnull%3Bhead.removeChild(script)%3B%7D%7D%3Bhead.appendChild(script)%3B%7Dget
@charset "UTF-8";
/*---------------------------------------------------------------
IE78 - Zurb Foundation 4 Grid
ˍˍˍˍˍˍˍˍˍˍˍˍˍˍˍˍˍˍˍˍˍˍˍˍˍˍˍˍˍˍˍˍˍˍˍˍˍˍˍˍˍˍˍˍˍˍˍˍˍˍˍˍˍˍˍˍˍˍˍˍˍˍˍˍˍ
https://gist.github.com/replete/7082477
(an enhanced fork of https://gist.github.com/zurbchris/5068210 )
1) Make sure $row-width-px = your max large breakpoint row width (e.g. 960px)