Skip to content

Instantly share code, notes, and snippets.

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

Rodrigo Antinarelli rodrigoea

🏠
Working from home
View GitHub Profile
@rodrigoea
rodrigoea / lottie.json
Created July 8, 2021 20:39
Lottie File
{"v":"5.6.8","fr":29.9700012207031,"ip":3.00000012219251,"op":49.0000019958109,"w":60,"h":60,"nm":"20210630_LoadingAnimation C_xport","ddd":0,"assets":[],"layers":[{"ddd":0,"ind":1,"ty":3,"nm":"Null 3","sr":1,"ks":{"o":{"a":0,"k":0,"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":0,"k":[30.25,35,0],"ix":2},"a":{"a":0,"k":[0,0,0],"ix":1},"s":{"a":0,"k":[72,72,100],"ix":6}},"ao":0,"ip":0,"op":49.0000019958109,"st":-9.00000036657752,"bm":0},{"ddd":0,"ind":2,"ty":4,"nm":"Shape Layer 5","parent":1,"sr":1,"ks":{"o":{"a":0,"k":100,"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":0,"k":[-2.754,-3.39,0],"ix":2},"a":{"a":0,"k":[0,0,0],"ix":1},"s":{"a":0,"k":[84.746,84.746,100],"ix":6}},"ao":0,"shapes":[{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":0,"k":{"i":[[-7.304,10.755],[1.191,-18.213],[0,0],[2.609,41.875],[1.125,-18.375]],"o":[[13.625,-20.063],[-2.625,40.125],[0,0],[0.438,-33.5],[-0.886,14.475]],"v":[[10.125,-9.438],[41.625,-5.25],[2.297,34.438],[-37.234,-5.375],[-6,-24.5]],"c":false},"ix":2},"nm":"Path 1","mn":"ADB
@rodrigoea
rodrigoea / notes.md
Last active January 22, 2020 15:09
Anotações Treino Guitarra
Dia Exercício BPM Check
03/01/2020 Precisão 1 100
03/01/2020 Precisão 2 100
03/01/2020 Precisão 3 85 ±
03/01/2020 Precisão 4 90
Dia Exercício BPM Check
04/01/2020 Precisão 1 101
@rodrigoea
rodrigoea / commands.md
Created June 4, 2018 20:12
Open links on the simulator from the terminal

IOS

xcrun simctl openurl booted "https://google.com/"

ANDROID

adb shell am start -a "android.intent.action.VIEW" -d "https://google.com/"

@rodrigoea
rodrigoea / gist:f0df44047a8b45d6c4bf
Created January 9, 2015 03:53
Key preferences for iterm2
  • Open iTerm2 Preferences (⌘,)
  • Click tab "Keys"
  • Add in iTerm2 the following Profile Shortcut Keys
Key Action Send
⌘← HEX CODE 0x01
⌘→ HEX CODE 0x05
⌥← SEND ESC SEQ b
⌥→ SEND ESC SEQ f
@rodrigoea
rodrigoea / gist:3a93c31d6de4416b65da
Last active June 7, 2016 21:52
Open a file in Sublime Text via Terminal (osx)
  • Open terminal, paste the line below and press enter:

Sublime

ln -s "/Applications/Sublime Text.app/Contents/SharedSupport/bin/subl" /usr/local/bin/subl

Atom

ln -s /Applications/Atom.app/Contents/Resources/app/atom.sh /usr/local/bin/atom

@rodrigoea
rodrigoea / gist:c853a1f89156147fd93c
Created November 10, 2014 18:58
Show bubble notification in Wordpress Menu
add_filter( 'add_menu_classes', 'show_pending_number');
function show_pending_number( $menu ) {
$type = "post_type";
$status = "draft";
$num_posts = wp_count_posts( $type, 'readable' );
$pending_count = 0;
if ( !empty($num_posts->$status) )
$pending_count = $num_posts->$status;
// build string to match in $menu array
@rodrigoea
rodrigoea / readme.md
Last active August 29, 2015 14:07
Follow Back Twitter Script using jQuery

#Easily follow back your twitter followers using jQuery

Make sure that you are signed in twitter.

  • Go to Twitter followers page.

    • Go down the scrolling until all followers are loaded.
  • Open Developer Tools.

    • Google Chrome
@rodrigoea
rodrigoea / gist:5cedebdc9e0ffb928b21
Created October 2, 2014 17:28
Show current date in PHP (Portuguese)
class myDate{
var $myDate;
function theDate ()
{
setlocale (LC_ALL, 'pt_BR');
$this->myDate = strftime ("%A, %d de %B de %Y");
return $this->myDate;
}
}
@rodrigoea
rodrigoea / gist:72b73ae5393be74f7e3b
Created October 1, 2014 17:14
Cut text after a number of characters and after the last point.
$text = "Vivamus sagittis lacus vel augue laoreet rutrum faucibus dolor auctor. Praesent commodo cursus magna, vel scelerisque nisl consectetur et. Nullam id dolor id nibh ultricies vehicula ut id elit. Donec id elit non mi porta gravida at eget metus.";
$split = strpos($text, '. ', 10)+1;
$text1 = wpautop(substr($text, 0, $split));
$text2 = wpautop(substr($text, $split));