Skip to content

Instantly share code, notes, and snippets.

Avatar
🎴
Feeding forms

Felipe Barros barrosfelipe

🎴
Feeding forms
  • Brazil
View GitHub Profile
View object_mccc_sep16.pde
// The Object
//
// GenerateMe submission to MCCC Sep 2016
// generateme.blog@gmail.com
// http://generateme.tumblr.com/
// http://folds2d.tumblr.com/
void setup() {
size(540, 540);
@barrosfelipe
barrosfelipe / links.md
Created Jul 17, 2018 — forked from igrigorik/links.md
HAR Show links & resources
View links.md
@barrosfelipe
barrosfelipe / post.md
Created Jul 20, 2017 — forked from levibostian/post.md
webpack, Tachyons, pug, Vue.js web app.
View post.md

Today, single page web apps are driving many websites that we use each and every day. Instead of having your browser request a new web page for each and every action you perform on a web page, single page web apps may load all in one request to smoothly and quickly transition with every action you perform.

When building single page web apps, you may decide to retrieve all of the HTML, CSS and Javascript with one single page load or dynamically load these resources as the user moves about your site. Either way, it can be a pain to bundle all of these assets together for the end user to download from your web server. This is where webpack comes into play.

webpack does all of the heavy lifting bundling all of your HTML, CSS and Javascript together. If you write your site all from scratch or depend on dependencies from npm, webpack takes care of packaging it all together for you. It has the ability to take your single page web app, cut out all of the code you don't need, then packa

@barrosfelipe
barrosfelipe / insert-url.el
Created Jul 20, 2017
Inserts the content of an URL into the Emacs buffer, like VIm's :r <url>
View insert-url.el
(defun insert-url-1 (url insert-func)
(let* ((tem (funcall insert-func url)))
(push-mark (+ (point) (car (cdr tem))))))
(defun insert-url (url)
"Insert contents of URL into buffer after point.
Set mark after the inserted text.
This function is meant for the user to run interactively.
Don't call it from programs!
@barrosfelipe
barrosfelipe / lets split build guide.md
Created Jul 12, 2017 — forked from nicinabox/lets split build guide.md
This guide covers building a Let's Split v2.
View lets split build guide.md

This guide is moving

To improve collaboration this guide is moving to GitHub. Continue reading


An Overly Verbose Guide to Building a Let's Split Keyboard

This guide covers building a Let's Split v2. Order your parts and read over this guide while you wait.

@barrosfelipe
barrosfelipe / org-style.css
Created Jun 21, 2017 — forked from mowen/org-style.css
A stylesheet for the Emacs Org Mode HTML export
View org-style.css
/**
* This stylesheet will work pretty well with a regular Org Mode HTML export.
* However, you do have to turn off all of the defaults:
*
* (setq org-export-html-style-include-scripts nil
* org-export-html-style-include-default nil)
*
* and insert a call to the stylesheet:
*
* (setq org-export-html-style
View main.js
$(window).load(function() {
$('.preloader').delay(1000).fadeOut('slow');
});
View waw.fish
function waw --description 'Sets a wallpaper with sxiv and feh'
set -l sxiv_var (sxiv -r -o $argv)
set -l read_var (read -s -c '--bg-')
xargs<(feh $read_var<$sxiv_var)
end
View core.clj
(defn fun1
[x y z]
(...))
(defn fun2
[a b]
(...))
(fun1 5 7 (fun2 "foo" 42))
View suckless surf
#!/bin/sh
#https://github.com/TrilbyWhite/interrobang
#https://github.com/TrilbyWhite/swifer
#https://bbs.archlinux.org/viewtopic.php?id=167804
#https://github.com/sschober/surf-scripts.git
timestamp=`date +%s`