Skip to content

Instantly share code, notes, and snippets.

View jampow's full-sized avatar
🏠
Working from home

Gianpaulo M. Soares jampow

🏠
Working from home
  • Levva
  • SP - Brasil
  • 15:54 (UTC -03:00)
View GitHub Profile
@jampow
jampow / index.html
Created November 10, 2012 12:31
CSS icons framework
<!DOCTYPE html>
<html>
<head>
<meta charset=utf-8 />
<title>CSS Icons framework</title>
</head>
<body>
<!-- http://cssdeck.com/labs/full/wejziql0/0 -->
<div class="triangle white-right small"></div>
@hernan604
hernan604 / gist:7797742
Last active December 30, 2015 07:39
js call and apply examples
var pessoas = [
{
"nome" : "João",
"sobrenome" : "Silva"
},
{
"nome" : "Mary",
"sobrenome" : "Mafra"
},
];
@alanleite
alanleite / gist:6c991bb89297bfea45954ff3d257d091
Created September 14, 2018 17:48
Send / Receive file linux
host: 000.000.000.000
port: 0000
send
cat file.txt > /dev/tcp/000.000.000.000/0000
receive
nc -lkvv 4444 > file.txt
@mateusmaaia
mateusmaaia / dafiti-products.js
Last active November 17, 2019 15:15
Discover what products are sold and distributed by Dafiti's
javascript:(
function(){
$(".banner-text-box").css("display", "none");
$(".col-md-3").css("width","15%");
$(".col-md-9").css("width","85%");
$(".product-list-col-3 .product-box").css({"width": "30%", "margin-right": "3%"});
$(".product-box").each((i, item) => {
url = $(item).find(".quickview-link.product-box-preview").attr("data-remote");

Snow in canvas land

Other people's code is awful, and your own code from months previous counts as someone else's. With this and the festive spirit in mind, I dug up a canvas snow demo I made two years ago to see how bad my code really was.

Turns out the performance landscape has changed quite a bit, but after applying a couple of workarounds, best practices, and memory management, I got the demo running smoother than it ever did.

Ugh, I can't believe I just wrote "performance landscape". Anyway...

How does the demo work?

@evandrix
evandrix / README.md
Created September 11, 2012 00:06
Headless web browsers

Here are a list of headless browsers that I know about:

  • [HtmlUnit][1] - Java. Custom browser engine. JavaScript support/DOM emulated. Open source.
  • [Ghost][2] - Python only. WebKit-based. Full JavaScript support. Open source.
  • [Twill][3] - Python/command line. Custom browser engine. No JavaScript. Open source.
  • [PhantomJS][4] - Command line/all platforms. WebKit-based. Full JavaScript support. Open source.
  • [Awesomium][5] - C++/.Net/all platforms. Chromium-based. Full JavaScript support. Commercial/free.
  • [SimpleBrowser][6] - .Net 4/C#. Custom browser engine. No JavaScript support. Open source.
  • [ZombieJS][7] - Node.js. Custom browser engine. JavaScript support/emulated DOM. Open source.
  • [EnvJS][8] - JavaScript via Java/Rhino. Custom browser engine. JavaScript support/emulated DOM. Open source.
@paulirish
paulirish / bling.js
Last active April 20, 2024 17:39
bling dot js
/* bling.js */
window.$ = document.querySelectorAll.bind(document);
Node.prototype.on = window.on = function (name, fn) {
this.addEventListener(name, fn);
}
NodeList.prototype.__proto__ = Array.prototype;
@MohamedAlaa
MohamedAlaa / tmux-cheatsheet.markdown
Last active April 28, 2024 12:29
tmux shortcuts & cheatsheet

tmux shortcuts & cheatsheet

start new:

tmux

start new with session name:

tmux new -s myname