I hereby claim:
- I am jonny-novikov on github.
- I am jonnynovikov (https://keybase.io/jonnynovikov) on keybase.
- I have a public key ASDFtpHO2Wc2KojprgQNwFswYgb7mvK2oT1lOG1-NgEL5go
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
| using System; | |
| public string GetResult(int number) { | |
| if (number % 3 == 0) { | |
| if (number % 5 == 0) return "fizzbuzz"; | |
| return "fizz"; | |
| } | |
| if (number % 5 == 0) return "buzz"; | |
| return number.ToString(); | |
| } |
#Open Source Laravel Projects
| pg_dump -U perkdsp -svf "production_schema.sql" perkdsp | |
| pg_dump -U perkdsp -svf "staging_schema.sql" perkdsp_staging | |
| java -jar apgdiff-2.4.jar production_schema.sql staging_schema.sql > diff.sql |
| #take full dump | |
| pg_dump -i -U user_name -F t -b -v -f "prod.backup" db_name | |
| #restore specific table | |
| pg_restore -i -U user_name -d db_name -t table_name -v "prod.backup" |
| using System; | |
| using System.IO; | |
| using System.Text; | |
| using Org.BouncyCastle.Asn1.Cms; | |
| using Org.BouncyCastle.OpenSsl; | |
| using Org.BouncyCastle.X509; | |
| using MimeKit; | |
| using MimeKit.IO; |
| static void inner_stretch_argb8888_bilinear(Blitter* blitter, const InnerInfo* info) | |
| { | |
| uint32 u = info->ustart; | |
| uint32 vfrac2 = info->vfrac >> 8; | |
| uint32 vfrac1 = 0x100 - vfrac2; | |
| uint32* src1 = reinterpret_cast<uint32*>(info->src); | |
| uint32* src2 = reinterpret_cast<uint32*>(info->src2); | |
| uint32* dest = reinterpret_cast<uint32*>(info->dest); | |
| int count = info->width; |
| /// <summary> | |
| /// .NET C# equivalent to PHP preg_match and preg_replace | |
| /// </summary> | |
| public static class RegexExtensions | |
| { | |
| /// <summary> | |
| /// Equivalent to PHP preg_match but only for 3 requied parameters | |
| /// </summary> | |
| /// <param name="regex"></param> | |
| /// <param name="input"></param> |