Skip to content

Instantly share code, notes, and snippets.

View thiagovespa's full-sized avatar
🛵
Pursuing the Truth

Thiago Galbiatti Vespa thiagovespa

🛵
Pursuing the Truth
View GitHub Profile
@thiagovespa
thiagovespa / MoonUtils.java
Created April 5, 2018 14:43
Cálculo das fases da Lua
import java.time.Duration;
import java.time.LocalDate;
import java.time.LocalDateTime;
import java.time.Month;
import java.time.ZoneOffset;
import java.time.format.DateTimeFormatter;
import java.time.format.FormatStyle;
import java.time.temporal.ChronoUnit;
import java.time.temporal.TemporalField;
import java.util.Locale;
b'`;$9!=IlXFiVwwvtPO0)pon%IHGFDV|dd@Q=+^:('&Y$#m!1S|.QOO=v('98$65aCB}0i.Tw+QPU'7qK#I20jiDVgG
S(bt<%@#!7~|4{y1xv.us+rp(om%lj"ig}fd"cx``uz]rwvYnslkTonPfOjiKgJeG]\EC_X]@[Z<R;VU7S6QP2N1LK-I
,GF(D'BA#?>7~;:9y16w43s10)p-,l*#(i&%e#d!~``{tyxZpuXsrTTongOkdMhg`Hd]ba`_^W@[ZYXW9UNSRQPOHMLK
J-++FE''<A$?>=<;:387xw43s10/(-&m*)('&}${d!~}|^zyxwvutmVqpiRQlkjiKafedc\E`_^@\[ZYX;V9NMRQ42NG
LK.IH*F?DCBA$#>7~;{{8xx5uu2rr/oo,ll)ii&f|e"!aw`{z\r[vXnmVTpongPkNihgJ_dcFa`B^]\UZ=RWV8TSLQ4O
N0LE.IHA)E>'BA:?!7~5|38y6/v321q).-&m*)i'&%|{d!~}_{zs\wvutsUqTonPlOjiKgJedFbE`_A]@[Z<X;VU7S6Q
P22GL/JIB+FEDC%;@?>7~;:987w5v32r0)p-,+k)('~g$#"b~w|uz]xwvutsrqTinQlOjLhgfeH]bE`CB]\>ZSXWVUTS
RQPON1LE.I,+*((&&$$""~~||zzxxv4u210/(-n+l)(i&g$ddy~}`u^]\ZvutVlUjSQQOOdMKgfeG]F[DBB@@>><<:VU
T6L5JO200EJ-HG*E>'B%$9>=<|4{2y05v321r).o,mlj(igg|#d!~}`uz]x[ZotWUUjoRmlkNibKJIGGEEZ_B]\?Z=XW
PU876442NM/KD-B+))''%%##!!}}{{yyw5v32s0q.-&+l)j'hff{"caav{^yxwZutslUpSnQOOdiLgfHHcba`Y^A\?Z=
@thiagovespa
thiagovespa / lero-lero.sh
Last active January 14, 2016 12:52
Lero-lero
frase=`content=$(curl -L www.lerolero.com) > /dev/null 2>&1; echo $content | sed -n 's#.*<blockquote id="frase_aqui">\(.*\)</blockquote>.*#\1#p'`
@thiagovespa
thiagovespa / class.sublime-snippet
Created November 6, 2012 15:31
Sublime: Class Snippet
<snippet>
<content><![CDATA[
public class ${1:Hello} {
public static void main(String[] args) {
System.out.println("${0:HelloWorld}");
}
}
]]></content>
<tabTrigger>class</tabTrigger>
<!-- Optional: Set a scope to limit where the snippet will trigger -->
@thiagovespa
thiagovespa / SingletonBillPugh.java
Created November 6, 2012 13:48
Java: Singleton Bill Pugh
public class SingletonBillPugh {
private SingletonBillPugh() {
}
private static class SingletonHolder {
public static final SingletonBillPugh instance = new SingletonBillPugh();
}
public static SingletonBillPugh getInstance() {