This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* Add it as a bookmark an click it when you are on the Config page of the app, or any Facebook Tab. | |
This works for the following url formats: | |
- http[s]://[www.]facebook.com/pagename/app_APPID | |
- http[s]://[www.]facebook.com/pagename?sk=app_APPID. | |
- http[s]://[www.]developers.facebook.com/apps/APP_ID[/summary[/... ?...]] | |
- http[s]://[www.]facebook.com/pages/[pagename]/[page_id]?sk=app_APPID[&app_data=...] | |
If you are not on any of these links... it will ask your for the App ID | |
*/ | |
// Bookmarlet |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(function(){ | |
var regex = /(?:^https?:\/\/(?:www\.)?(?:developers\.)?facebook.com\/(?:apps\/)?(?:.+(?:\/|\?sk=))(?:app_)?)([0-9]{15})(?:.+)?/; | |
if( (app_id = location.href.match(regex)) != null ) | |
{ | |
location.href= 'https://developers.facebook.com/apps/'+app_id[1]+'/summary'; | |
} | |
})(); | |
// Bookmarklet | |
(function(){ var regex = /(?:^https?:\/\/(?:www\.)?(?:developers\.)?facebook.com\/(?:apps\/)?(?:.+(?:\/|\?sk=))(?:app_)?)([0-9]{15})(?:.+)?/; if( (app_id = location.href.match(regex)) != null ) location.href= 'https://developers.facebook.com/apps/'+app_id[1]+'/summary'; })(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
array( | |
'method' => 'POST', | |
'name' => 'foto', | |
'relative_url' => '/me/photos', | |
'body' => http_build_query(array( | |
'message' => 'Test!', | |
'url' => 'http://creative.ak.fbcdn.net/ads-ak-snc7/s110x80/v565063/flyers/125/39/13467109601528432494_10_ce7bfdee.jpg' | |
)), | |
'omit_response_on_success' => false | |
), |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
profile.ak.fbcdn.net/ => fbcdn-profile-a.akamaihd.net/ | |
sphotos-f.ak.fbcdn.net/ => fbcdn-sphotos-f-a.akamaihd.net/ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" | |
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> | |
<html lang="en" xml:lang="en" xmlns="http://www.w3.org/1999/xhtml"> | |
<html> | |
<head> | |
<link rel="stylesheet" href="style.css" type="text/css" media="screen" /> | |
<style type="text/css" media="screen"> | |
#container{ height: auto; min-height: 100%; } | |
</style> | |
</head> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
* {margin: 0;padding: 0} | |
html,body {height: 100%} | |
#table { | |
height: 100%; | |
display: table; | |
width: 100%; | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var redimensionar = function(srcWidth, srcHeight, maxWidth, maxHeight) { | |
var ratio = [maxWidth / srcWidth, maxHeight / srcHeight ]; | |
ratio = Math.min(ratio[0], ratio[1]); | |
// Mantener el ancho y alto normal? | |
if(ratio < 1){ | |
srcWidth = srcWidth*ratio; | |
srcHeight = srcHeight*ratio; | |
} | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Show hidden characters
[ | |
{ | |
"keys": ["super+alt+shift+5"], | |
"command": "set_layout", | |
"caption" : "1-2 Grid", | |
"args": | |
{ | |
"cols": [0.0, 0.5, 1.0], | |
"rows": [0.0, 0.5, 1.0], | |
"cells": |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var numberOfLines = element[0].offsetHeight / element.css('lineHeight').replace('px',''); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- | |
Ejemplo: | |
Página: dominio/formulario | |
API: analytics.js | |
--> | |
<script> | |
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){ | |
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o), | |
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m) |
OlderNewer