Skip to content

Instantly share code, notes, and snippets.

View nalmeida's full-sized avatar

Nicholas nalmeida

View GitHub Profile
@nalmeida
nalmeida / Embed Flash
Created August 17, 2010 14:48
Embed Flash
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="320" height="240" id="ID_SWF" name="ID_SWF">
<param name="movie" value="YOUR_SWF.swf">
<param name="allowfullscreen" value="true">
<param name="allowscriptaccess" value="always">
<param name="flashvars" value="">
<embed id="ID_SWF"
name="ID_SWF"
src="YOUR_SWF.swf"
width="320"
height="240"
@nalmeida
nalmeida / Como resolver o problema de "broken pipe" no TextMate
Created September 1, 2010 19:54
Como resolver o problema de "broken pipe" no TextMate
Como resolver o problema de "broken pipe" do AS3 Bundle no TextMate.
#1 Dê permissão de escrita no diretório do Flex SDK (chmod -Rf 777 Diretorio)
#2 Configure corretamente o caminho no TextMate
#1 TextMate > Preferences
#2 Advanced > Shell Variables
#3 TM_FLEX_PATH : caminho do diretório do SDK (ex.:/Applications/Util/flex_sdk_3)
#3 Desligue o Daemon
#4 Reinicie o TextMate
#5 Ligue o Daemon
@nalmeida
nalmeida / AS2 Self Preloader
Created September 20, 2010 18:00
AS2 Scripts
// Frame 1
var total_bytes = _root.getBytesTotal();
var loaded_bytes = _root.getBytesLoaded();
percent = loaded_bytes/total_bytes;
if(percent >=1) gotoAndPlay("_afterLoad");
// Frame 2
<style type="text/css">
.title {
color:red;
}
.square {
background:yellow;
border:1px solid red;
text-align:center;
}
var $ = (function (dollar) {
if (dollar) {
return dollar;
}
return function (selector) {
return Array.prototype.slice.call(document.querySelectorAll(selector));
};
}(window.$));

Multiple SSH Keys settings for different github account

create different public key

create different ssh key according the article Mac Set-Up Git

$ ssh-keygen -t rsa -C "[email protected]"
@nalmeida
nalmeida / gist:cc57495cd963f42147c7
Created February 13, 2015 14:36
Browser Support Table
## Browser Support
<table>
<tbody>
<tr>
<td><img src="http://ie.microsoft.com/testdrive/ieblog/2010/Sep/16_UserExperiencesEvolvingthebluee_23.png" height="40"></td>
<td><img src="http://img3.wikia.nocookie.net/__cb20120330024137/logopedia/images/d/d7/Google_Chrome_logo_2011.svg" height="40"></td>
<td><img src="http://media.idownloadblog.com/wp-content/uploads/2014/06/Safari-logo-OS-X-Yosemite.png" height="40"></td>
<td><img src="http://th09.deviantart.net/fs71/200H/f/2013/185/e/b/firefox_2013_vector_icon_by_thegoldenbox-d6bxsye.png" height="40"></td>
<td><img src="http://upload.wikimedia.org/wikipedia/commons/d/d4/Opera_browser_logo_2013.png" height="40"></td>
@nalmeida
nalmeida / machine-setup
Last active October 16, 2015 14:01
Setting up a new Mac
# Based on @mcarneiro setup: https://gist.github.com/mcarneiro/fba0e7f68ada9cf48108#file-machine-setup
# Install the following software manually via App Atore
# - Xcode
# - Microsoft remote desktop
# - Sonicwall mobile connect (VPN)
# - Evernote
# Configuration
# ---------------
# Increase PDF font size for Kindle
1. Download k2pdfopt from https://www.willus.com/k2pdfopt
2. Change the chmod: $ chmod 755 ./k2pdfopt
3. $ ./k2pdfopt ./shape-up-to-opt.pdf -ds 1.4
(Press ENTER after entering in the CLI menu to run)
Source:
* https://www.youtube.com/watch?v=ddilW4cK08s
* Using Amazon / Kindle Editor for .docx files: https://www.amazon.com/Kindle-Create/b?ie=UTF8&node=18292298011
@nalmeida
nalmeida / twittermute.txt
Created January 27, 2020 17:58 — forked from IanColdwater/twittermute.txt
Here are some terms to mute on Twitter to clean your timeline up a bit.
Mute these words in your settings here: https://twitter.com/settings/muted_keywords
ActivityTweet
generic_activity_highlights
generic_activity_momentsbreaking
RankedOrganicTweet
suggest_activity
suggest_activity_feed
suggest_activity_highlights
suggest_activity_tweet