Skip to content

Instantly share code, notes, and snippets.

@jptcnde
jptcnde / dabblet.css
Created September 7, 2015 12:19 — forked from csssecrets/dabblet.css
Vertical centering - Flexbox solution
/**
* Vertical centering - Flexbox solution
*/
* { margin: 0 }
body {
display: flex;
min-height: 100vh;
}
@jptcnde
jptcnde / .flowconfig
Created April 8, 2017 04:08 — forked from jorilallo/.flowconfig
Flowtype config for Webpack and ES6/7
[ignore]
.*/node_modules/fbjs/.*
.*/node_modules/editions/.*
[include]
[libs]
[options]
# Support webpack's resolve.root
@jptcnde
jptcnde / cloudSettings
Last active April 1, 2018 11:06
Visual Studio Code Sync Settings Gist
{"lastUpload":"2018-04-01T11:06:39.426Z","extensionVersion":"v2.9.0"}
# If you come from bash you might have to change your $PATH.
# export PATH=$HOME/bin:/usr/local/bin:$PATH
# Path to your oh-my-zsh installation.
export ZSH=/home/jopet/.oh-my-zsh
# Set name of the theme to load. Optionally, if you set this to "random"
# it'll load a random theme each time that oh-my-zsh is loaded.
# See https://github.com/robbyrussell/oh-my-zsh/wiki/Themes
ZSH_THEME="spaceship"
* Downloaded or downloading
=============================
**http://kickass.to/infiniteskills-learning-jquery-mobile-working-files-t7967156.html
**http://kickass.to/lynda-bootstrap-3-advanced-web-development-2013-eng-t8167587.html
**http://kickass.to/lynda-css-advanced-typographic-techniques-t7928210.html
**http://kickass.to/lynda-html5-projects-interactive-charts-2013-eng-t8167670.html
**http://kickass.to/vtc-html5-css3-responsive-web-design-course-t7922533.html
*http://kickass.to/10gen-m101js-mongodb-for-node-js-developers-2013-eng-t8165205.html
*http://kickass.to/cbt-nuggets-amazon-web-services-aws-foundations-t7839734.html
@jptcnde
jptcnde / createTreeFromPaths.js
Created March 2, 2018 02:48
create tree from paths string.
const createNode = ([
lvl, text, path,
value,
key,
parentKey,
]) => ({
value,
lvl, text, path,
key,
parentKey,
@jptcnde
jptcnde / # Sublime Emmet JSX Reactjs.md
Last active March 4, 2018 16:25 — forked from max-mykhailenko/# Sublime Emmet JSX Reactjs.md
Sublime text 3. Enable Emmet in JSX files with Sublime React plugin

This is no longer needed as Emmet supports JSX - you just need to turn it all on. Did a quick tutorial: http://wesbos.com/emmet-react-jsx-sublime/

Thanks, @wesbos

Problem

  • Using emmet in jsx files
  • Emmet expands text when js autocomplete needed
@jptcnde
jptcnde / tab-trigger.js
Created March 4, 2018 16:46 — forked from wesbos/tab-trigger.js
How to properly get a TAB trigger working with Emmet inside of JSX
{
"keys": ["tab"],
"command": "expand_abbreviation_by_tab",
// put comma-separated syntax selectors for which
// you want to expandEmmet abbreviations into "operand" key
// instead of SCOPE_SELECTOR.
// Examples: source.js, text.html - source
"context": [
{
// http://stackoverflow.com/questions/5560248/programmatically-lighten-or-darken-a-hex-color-or-rgb-and-blend-colors
// credits to https://github.com/PimpTrizkit/
function shadeBlendConvert(percent, from, to) {
if (
typeof percent != 'number' ||
percent < -1 ||
percent > 1 ||
typeof from != 'string' ||
(from[0] != 'r' && from[0] != '#') ||
(to && typeof to != 'string')
@jptcnde
jptcnde / custom-loki.sh
Created March 25, 2018 06:40 — forked from evertontrindade/custom-loki.sh
Things to do after install Elementary OS Loki (0.4)
# First you update your system
sudo apt-get update && sudo apt-get dist-upgrade
# Clean-up System
sudo apt-get purge epiphany-browser epiphany-browser-data #browser
sudo apt-get purge midori-granite #browser
sudo apt-get purge noise
sudo apt-get purge scratch-text-editor #text-editor
sudo apt-get purge modemmanager
sudo apt-get purge geary #email