Skip to content

Instantly share code, notes, and snippets.

View mrmnmly's full-sized avatar
🛌
Profile archived

mrmnmly mrmnmly

🛌
Profile archived
View GitHub Profile
@mrmnmly
mrmnmly / gist:2556fe35b98f7e863ddb7149128eb792
Created July 2, 2017 10:58
CUPS Printer print borderless
Use:
```
lpoptions -l printername
```
to view the list of printer options. The two lines of interest are:
`StpiShrinkOutput/Shrink` Page If Necessary to Fit Borders: Shrink Crop *Expand
`StpBorderless/Borderless`: False *True
@mrmnmly
mrmnmly / js-interview-questions.md
Last active June 3, 2017 10:26
Front-end dev interview questions

This file contains typical js/front-end related questions that I've heard during various recruitment processes

Answers will be added later (or You can contribute)

1. Explain what `this` means in JavaScript.
2. How to attach event to existing element in the document (eg. `.my-element`)?
 2.2. How to attach event to newly/dynamically added (`.my-element`) element? 
 2.3. What is an event delegation?
3. Explain the differences between sync and async programming in JavaScript?
<?php
$fruits = array("bananas", "apples", "pears");
echo 'I love eating ' . $fruits[1] . ' too!';
?>
<?php
// On the line below, create your own associative array:
$myArray = array(1, 2, 3, 4);
// On the line below, output one of the values to the page:
GIMP Palette
Name: Pico8
Columns: 0
#
17 17 17 Untitled
29 43 83 Untitled
131 118 156 Untitled
41 173 255 Untitled
126 37 83 Untitled
255 0 77 Untitled
@mrmnmly
mrmnmly / es6example.es6.js
Last active February 18, 2016 09:07
let vs var
function ES6example(){
//x is *not* visible out here
for( let x = 0; x < 5; x++ ) {
//x is only visible in here (and in the for() parentheses)
};
//x is *not* visible out here
};
@mrmnmly
mrmnmly / quo.min.js
Created February 4, 2016 19:55
quo.js minified library
/*
QuoJS 2.1
http://quojs.tapquo.com
Copyright (C) 2011,2012 Javi Jiménez Villar (@soyjavi)
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, distribute, sublicense,
@mrmnmly
mrmnmly / adam01.milk
Last active December 12, 2015 18:49
A 1-year-old kid first code snippet
///////////+\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\ uu,mhuh9errrr ,j???????????
/
sdafsdfsdfnjksdfjksdjf
dfgsdfhgdfshfdsh≥≥≥≥≥≥≥≥≥≥≥≥.........................
............ rmn7,,,
@mrmnmly
mrmnmly / README.md
Last active September 21, 2015 08:12 — forked from chrisjacob/README.md
Setup GitHub Pages "gh-pages" branch as a subfolder within the "master" project on your local checkout - a step-by-step guide.

Intro

Setup GitHub Pages "gh-pages" branch as a subfolder within the "master" project on your local checkout.

IMPORTANT

If you plan on switching between different branches (e.g. git checkout master-experiment then revert back with git checkout master) you will loose your child folder from this tutorial (because it's in your .gitignore and is not part of your master branch).

@mrmnmly
mrmnmly / .vimrc
Last active August 29, 2015 14:14
my `.vimrc` file
"vundler config
set nocompatible
filetype off
set rtp+=~/.vim/bundle/Vundle.vim
call vundle#rc()
"vim plugin list
Plugin 'gmarik/Vundle.vim' "this is required for vim bundler
Plugin 'godlygeek/tabular'
Plugin 'jelera/vim-javascript-syntax'