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
| adesso | |
| allora | |
| altre | |
| altri | |
| altro | |
| ancora | |
| avere | |
| ben | |
| bene | |
| buono |
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
| ffmpeg -y -ss $BEGIN -t $LENGTH -i $INPUT cut.mkv | |
| ffmpeg -i cut.mkv -vf cropdetect=24:16:0 -f null - | |
| ffmpeg -i cut.mkv -vf crop=$CROP cropped.mkv | |
| ffmpeg -y -i cropped.mkv -vf fps=10,scale=320:-1:flags=lanczos,palettegen palette.png | |
| ffmpeg -y -i cropped.mkv -i palette.png -filter_complex "fps=10,scale=400:-1:flags=lanczos[x];[x][1:v]paletteuse" output.gif | |
| # example: | |
| # $INPUT = file.mkv | |
| # $BEGIN = 00:00:50.5 | |
| # $LENGTH = 1.6 |
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
| ### Keybase proof | |
| I hereby claim: | |
| * I am timendum on github. | |
| * I am timendum (https://keybase.io/timendum) on keybase. | |
| * I have a public key whose fingerprint is BAE7 79F7 5132 386E C2DE 938F 0CE8 A46B 020F 4ABA | |
| To claim this, I am signing this object: |
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
| SELECT OBJECT_DEFINITION(OBJECT_ID('dbo.Function_Name')); |
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
| /** | |
| * Calculate the age from birth date | |
| * @param birth the birth date | |
| * @return the age | |
| */ | |
| public static int getAge(Calendar birth) { | |
| Calendar today = Calendar.getInstance(); | |
| int age = today.get(Calendar.YEAR) - birth.get(GregorianCalendar.YEAR); | |
| if ( | |
| today.get(Calendar.MONTH) < birth.get(GregorianCalendar.MONTH) || |
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
| public static GregorianCalendar getDateFromCF(String cf) { | |
| GregorianCalendar date = new GregorianCalendar(); | |
| int anno = Integer.parseInt("19" + cf.substring(6, 8)); | |
| date.set(GregorianCalendar.YEAR, anno); | |
| int month = 0; | |
| switch (Character.toUpperCase(cf.charAt(8))) { | |
| case 'A': | |
| month = GregorianCalendar.JANUARY; | |
| break; |
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
| if (top != self) { | |
| //framed | |
| } else { | |
| // stand-alone | |
| } |
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
| if %errorlevel% == 0 goto :ENDD |
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
| ping 1.1.1 -w 10 >/null |
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
| curl -I -H "Accept-Encoding: gzip,deflate" "$URL" --silent | grep -i "Content-Encoding:" | |
| # OR | |
| curl -H "Accept-Encoding: gzip,deflate" "$URL" --silent --write-out "%{size_download}" --output /dev/null | |
| curl "$URL" --silent --write-out "%{size_download}" --output /dev/null | |
| # 2nd must be greater the 1st |