Skip to content

Instantly share code, notes, and snippets.

View AvraamMavridis's full-sized avatar
🎯
Focusing

Avraam Mavridis AvraamMavridis

🎯
Focusing
View GitHub Profile
{
"furniture_type": "shelf",
"furniture_id": null,
"is_label": false,
"camera": {
"angle": 0
},
"structure": {
"columns": [
{
@AvraamMavridis
AvraamMavridis / gist:7b5f4d2ae2b73a187549
Created June 5, 2015 14:04
shelf structure example
{
"is_label": false,
"camera": {
"angle": 0
},
"furniture_type": "shelf",
"structure": {
"columns": [
{
"position": 0,
@AvraamMavridis
AvraamMavridis / GJagPr.markdown
Last active August 29, 2015 14:27
CSS Clip-path pen
[
{
"city": "New York",
"growth_from_2000_to_2013": "4.8%",
"latitude": 40.7127837,
"longitude": -74.0059413,
"population": "8405837",
"rank": "1",
"state": "New York"
},
bindkey "\e\e[D" backward-word
bindkey "\e\e[C" forward-word
bindkey "^[a" beginning-of-line
bindkey "^[e" end-of-line
# Path to your oh-my-zsh installation.
export ZSH=/Users/avraammavridis/.oh-my-zsh
# Set name of the theme to load.
# Look in ~/.oh-my-zsh/themes/
@AvraamMavridis
AvraamMavridis / 3-hidden-html-tips.md
Created August 17, 2016 12:46 — forked from nepsilon/3-hidden-html-tips.md
3 hidden HTML tips — First published in fullweb.io issue #61

3 hidden HTML tips

1. Click label to auto-focus on input:

A big plus for a good UX that all modern browsers support. Note that the pairing happens between the label’s for attribute and the input’s id attribute, not its name.

<label for="username">Fiscal Year</label>
<input type="name" name="username" id="username" />
@AvraamMavridis
AvraamMavridis / 3-hidden-css-tips.md
Created August 23, 2016 08:02 — forked from nepsilon/3-hidden-css-tips.md
3 hidden CSS tips — First published in fullweb.io issue #62

3 hidden CSS tips

1. Use empty-cells to style table empty cells:

Surprisingly the browser support is quite good and extends back to IE8. Convenient to give less visual predominance to empty cells.

table {
  empty-cells: hide;
}
[].forEach.call($$("*"),function(a){a.style.outline="1px solid #"+(~~(Math.random()*(1<<24))).toString(16)})
[
{ "key": "cmd+o", "command": "editor.action.outdentLines",
"when": "editorTextFocus && !editorReadonly" },
{ "key": "cmd+k", "command": "workbench.action.terminal.kill" },
{ "key": "ctrl+t", "command": "workbench.action.terminal.toggleTerminal" }
]
importScripts('./cachepolyfill.js');
var CACHE_VERSION = 1;
var CACHE = `cache-v${ CACHE_VERSION }`;
const assetsToCache = [
// CDNs AND 3rd parties
'//cdnjs.cloudflare.com/ajax/libs/socket.io/1.7.2/socket.io.min.js',
'//cdnjs.cloudflare.com/ajax/libs/jquery/3.1.1/jquery.min.js',
'//cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.3.5/css/bootstrap.min.css',