Skip to content

Instantly share code, notes, and snippets.

View JefMari's full-sized avatar
🎯
Doing things to improve the lives of frontend devs

Jeferson Mari JefMari

🎯
Doing things to improve the lives of frontend devs
View GitHub Profile
@JefMari
JefMari / Modular Javascript - Object Literal Pattern.markdown
Created July 15, 2016 03:48
Modular Javascript - Object Literal Pattern
@JefMari
JefMari / browser.js
Created July 5, 2016 03:32 — forked from srph/browser.js
jeff: tweaking array from storage source
// Local Storage
var rows = JSON.parse(localStorage.getItem('names') || []);
rows.push('names');
localStorage.setItem('names', JSON.stringify(rows));
@JefMari
JefMari / gitignores.md
Last active February 14, 2019 18:13
gitignores

Git ignores

Compiled source

*.exe
*.com
*.class
*.o
*.dll
*.so
@JefMari
JefMari / htmlentity.js
Created November 10, 2015 08:57 — forked from CatTail/htmlentity.js
Javascript: encode(decode) html text into html entity
// encode(decode) html text into html entity
var decodeHtmlEntity = function(str) {
return str.replace(/&#(\d+);/g, function(match, dec) {
return String.fromCharCode(dec);
});
};
var encodeHtmlEntity = function(str) {
var buf = [];
for (var i=str.length-1;i>=0;i--) {
@JefMari
JefMari / SassMeister-input-HTML.html
Created September 3, 2015 15:29
Generated by SassMeister.com.
<div class="box-1"></div>
<div class="box-2"></div>