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
import os | |
import re | |
import pathlib | |
myCmd = 'convert %s mark.gif +distort affine "0,0 0,0 %[w],%[h] %[fx:t?v.w*(u.h/v.h*0.9):s.w],%[fx:t?v.h*(u.h/v.h*0.9):s.h]" -shave 1 -gravity center -compose dissolve -define compose:args=\'40\' -composite ~/mark/%s' | |
targetDir = '/home/fer/mark' | |
watermark = '~/mark.gif' | |
filepath = 'imagelist.txt' | |
with open(filepath) as fp: |
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
# pip install pyfcm | |
from pyfcm import FCMNotification | |
push_service = FCMNotification(api_key="< FIREBASE API KEY YOU FOUND IN PROYECT settings cloudmessaging/ >") | |
# OR initialize with proxies |
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
# <type>: (If applied, this commit will...) <subject> (Max 50 char) | |
# |<---- Using a Maximum Of 50 Characters ---->| | |
# Explain why this change is being made | |
# |<---- Try To Limit Each Line to a Maximum Of 72 Characters ---->| | |
# Provide links or keys to any relevant tickets, articles or other resources | |
# Example: Github issue #23 |
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
/* centra los portfolios */ | |
jQuery(function() { | |
reorder_items = function() { | |
console.log("reorder"); | |
var pf_total_items = 5; | |
if (jQuery(window).width() < 1599){ | |
pf_total_items = 4; | |
} | |
if (jQuery(window).width() < 1025){ |
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
spanish characters: | |
[/:a-zA-ZáéíóúüñÑÁÉÍÓÚ@¿¡0-9_,.\-º ]+ | |
== fix php serialize to json== | |
string | |
[ s]:[ 0-9]+:[ ]?"([:a-zA-ZéíóúüñÑÁÉÍÓÚ¿¡00-9_.,\- ]+)";[ s]:[ 0-9]+:[ ]*"([/:a-zA-ZáéíóúüñÑÁÉÍÓÚ@%¿¡0-9_,.\-º\(\);ª•=?!\n\r\t\\“”… ]*)"; | |
[ s]:[ 0-9]+:[ ]?"([:a-zA-ZéíóúüñÑÁÉÍÓÚ¿¡00-9_.,\- ]+)";[ s]:[ 0-9]+:[ ]*"([/:a-zA-ZáéíóúüñÑÁÉÍÓÚ@%¿¡0-9_,.\-º\(\);ª•=?!\n\r\t\\“”… ]*)"; | |
[ s]:[ 0-9]+:[ ]?"([:a-zA-ZéíóúüñÑÁÉÍÓÚ¿¡00-9_.,\- ]+)";[ a-z]:[ 0-9]+: "([\s\S]*)"; | |
"$1": "$2",\n |
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
/* | |
You can see it in action here : | |
http://takurecortes.tumblr.com/post/36505473972/tumblr-hates-nic | |
just copy this in your tumblr theme html between <script></script> tags or use the raw option to get the file | |
*/ | |
google.load("jquery", "1.3"); | |
google.setOnLoadCallback(function() { | |
jQuery(function($) { | |
$(".notes").after("<div id='takuStats' style='border:1px solid black;background: #ddd;color:#000;padding:1em' >Clickme after load all notes</div>"); |