Skip to content

Instantly share code, notes, and snippets.

View nucliweb's full-sized avatar
⚡
Debugging…

Joan León nucliweb

⚡
Debugging…
View GitHub Profile
@nucliweb
nucliweb / toggle-css-script-on-off.js
Created January 24, 2016 08:35 — forked from AllThingsSmitty/toggle-css-script-on-off.js
Disable/enable a stylesheet or script
// Use the Boolean `disabled` attribute
myCSS.disabled = true;
myJS.disabled = true;
// Create a stylesheet toggle button:
var stylesheet = document.getElementById('boot'),
btn = document.querySelector('.btn');
btn.addEventListener('click', function () {
stylesheet.disabled = (stylesheet.disabled === false) ? true : false;
@nucliweb
nucliweb / SassMeister-input.scss
Created January 21, 2016 14:17
Generated by SassMeister.com.
// ----
// libsass (v3.3.2)
// ----
@each $font in Lato-Regular,
Lato-Bold,
Lato-Bold-Italic,
Lato-Italic {
@font-face {
font-family: $font;
@nucliweb
nucliweb / media-queries.js
Created January 20, 2016 22:25
Media-queries JS
// MEDIA QUERIES
// ----------------------------------------------------------------------------
function displayIsBiggerThanBreakpoint(bp) {
var displayWidth = window.innerWidth || document.documentElement.clientWidth || document.body.clientWidth;
return displayWidth >= bp;
}
function isMobile() {
return !displayIsBiggerThanBreakpoint(320);
}
@nucliweb
nucliweb / CSS-Tools.md
Last active June 24, 2024 17:11
CSS Tools
@nucliweb
nucliweb / Styleguides.md
Created December 17, 2015 18:50
Styleguides

Tipos de Guias de estilo

  • Content & editorial style guides
  • Branding & identity style guides
  • Development style guides & coding standards
  • Human Interface Guidelines
  • Frontend style guides

Content & editorial style guides

@nucliweb
nucliweb / fortune-cowsay-lolcat.md
Last active December 1, 2026 22:25
fortune | cowsay | lolcat

fortune | cowsay | lolcat

Install Brew

ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"

Install fortune

brew search fortune
@nucliweb
nucliweb / expandEmmet.sublime-keymap
Created November 20, 2015 16:09 — forked from davecarter/expandEmmet.sublime-keymap
Expand Emmet inside 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": [
{
@nucliweb
nucliweb / window.console.js
Created November 13, 2015 13:04
window.console
(function(){
var ef = function(){};
window.console = window.console || {log:ef,warn:ef,error:ef,dir:ef};
}());
@nucliweb
nucliweb / .gitconfig
Created November 7, 2015 15:42
.gitconfig
# set your user tokens as environment variables, such as ~/.secrets
# See the README for examples.
[color]
ui = true
[color "branch"]
current = yellow reverse
local = yellow
remote = green
[color "diff"]
meta = yellow bold