Skip to content

Instantly share code, notes, and snippets.

View skvggor's full-sized avatar
🇯🇲
Peace && Love.

Marcos skvggor

🇯🇲
Peace && Love.
View GitHub Profile
@Restuta
Restuta / framework-sizes.md
Last active April 19, 2025 05:14
Sizes of JS frameworks, just minified + minified and gzipped, (React, Angular 2, Vue, Ember)

Below is the list of modern JS frameworks and almost frameworks – React, Vue, Angular, Ember and others.

All files were downloaded from https://cdnjs.com and named accordingly. Output from ls command is stripped out (irrelevant stuff)

As-is (minified)

$ ls -lhS
566K Jan 4 22:03 angular2.min.js
@czenzel
czenzel / usb_root.rb
Last active November 30, 2017 18:01
USB and File System Root URL for Jekyll Generated Sites (File System Jekyll without Web Server)
# USB / File System Root and URL Root for Jekyll
#
# Description: Create links and paths within your site using a file system root
# Description: This plugin is not limited to USB use for a Jekyll Static Site
#
# Built by: Christopher Zenzel, AA, IST
# Purpose: A Jekyll Web Site containing my Resume for distribution via USB
# Built: 2015
#
# Please use as you want, but please give credit back to my GIST or
@vsouza
vsouza / .bashrc
Last active April 20, 2025 21:15
Golang setup in Mac OSX with HomeBrew. Set `GOPATH` and `GOROOT` variables in zshell, fish or bash.
# Set variables in .bashrc file
# don't forget to change your path correctly!
export GOPATH=$HOME/golang
export GOROOT=/usr/local/opt/go/libexec
export PATH=$PATH:$GOPATH/bin
export PATH=$PATH:$GOROOT/bin
@lfcipriani
lfcipriani / gist:c35524da6d4712ce2c64
Created January 5, 2015 23:23
Sorteio Dojo Nodebr + Twitter
"use strict";
var path = require("path");
var fs = require("fs");
var Twit = require('twit');
var rateLimiter = {};
var luckyNumber = Math.round(Math.random()*60);
var re = /\d+/;
var oauth = JSON.parse(fs.readFileSync("./config/twitter_credentials.js", "UTF8"));
@skvggor
skvggor / atom.sh
Last active August 29, 2015 14:11
atom packages
atom-beautify
atom-color-highlight
atom-lint
autocomplete-plus
close-tags
command-logger
csscomb
dracula-theme
editorconfig
emmet
@skvggor
skvggor / app.js
Created October 13, 2014 14:38
Verifica se campo esta vazio, com mais de 40 caracteres e se é número.
function exibirNomeUsuario() {
var span, nome;
span = document.querySelector(".nome-usuario");
nome = prompt("Qual é o seu nome?", "");
if ((nome === "") || (nome.length >= 40) || (!isNaN(nome))) {
nome = "comédia";
}
span.innerHTML = nome;
@idleberg
idleberg / fish_shell.md
Last active February 25, 2025 01:21
Instructions on how to install Fish shell on Mac OS X, including Oh My Fish!. Also includes several useful functions.

Installation

  1. Install fish via Brew
  2. Optionally install Oh My Fish!
  3. Add fish to known shells
  4. Set default shell to fish
brew install fish  
curl -L https://get.oh-my.fish | fish
@brenopolanski
brenopolanski / install-firefox-nightly.md
Created July 30, 2014 00:34
Install Firefox Nightly in Ubuntu via PPA

via: http://www.webupd8.org/2011/05/install-firefox-nightly-from-ubuntu-ppa.html

Add the Mozilla Daily PPA (available for Ubuntu 11.04, 10.10 and 10.04) and install Firefox Nightly using the commands below:

$ [sudo] add-apt-repository ppa:ubuntu-mozilla-daily/ppa
$ [sudo] apt-get update
$ [sudo] apt-get install firefox-trunk

Since this is a daily builds PPA, it's nowhere near stable so use it at your own risk!

anonymous
anonymous / Op3nEduc4tion.sql
Created April 27, 2014 03:32
Tabelas hackathon
-- MySQL Script generated by MySQL Workbench
-- 04/27/14 00:32:13
-- Model: New Model Version: 1.0
SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0;
SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0;
SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='TRADITIONAL,ALLOW_INVALID_DATES';
-- -----------------------------------------------------
-- Schema mydb
-- -----------------------------------------------------
@skvggor
skvggor / query.sql
Last active January 4, 2016 16:29
Update "proto" to "production".
-- Update custom fields
UPDATE
`wp_postmeta`
SET
`meta_value` = REPLACE(`meta_value`, 'proto/', '')
WHERE
`post_id` > 0;
-- Update site URL