Make sure there is at least one file in it (even just the README.md)
ssh-keygen -t rsa -C "your_email@example.com"
| function birthday(s, d, m) { | |
| let result = 0; | |
| for(let i = 0; i < s.length - (m - 1); i++) { | |
| if (s.slice(i, i + m).reduce((r, v) => r + v, 0) === d) { | |
| result++; | |
| } | |
| } | |
| return result; | |
| } |
| git config merge.renormalize true # prevents unnecessary merge conflicts, http://stackoverflow.com/a/12194759/23566 |
| Serial Keys: | |
| FU512-2DG1H-M85QZ-U7Z5T-PY8ZD | |
| CU3MA-2LG1N-48EGQ-9GNGZ-QG0UD | |
| GV7N2-DQZ00-4897Y-27ZNX-NV0TD | |
| YZ718-4REEQ-08DHQ-JNYQC-ZQRD0 | |
| GZ3N0-6CX0L-H80UP-FPM59-NKAD4 | |
| YY31H-6EYEJ-480VZ-VXXZC-QF2E0 | |
| ZG51K-25FE1-H81ZP-95XGT-WV2C0 | |
| VG30H-2AX11-H88FQ-CQXGZ-M6AY4 |
| /* Example implementation of password hasher similar to Django's PasswordHasher | |
| * Requires Java8 (but should be easy to port to older JREs) | |
| * Currently it would work only for pbkdf2_sha256 algorithm | |
| * | |
| * Django code: https://github.com/django/django/blob/1.6.5/django/contrib/auth/hashers.py#L221 | |
| */ | |
| import java.nio.charset.Charset; | |
| import java.security.NoSuchAlgorithmException; | |
| import java.security.spec.InvalidKeySpecException; | |
| import java.security.spec.KeySpec; |
Example inputs:
| Variable | Value |
|---|---|
| key | the shared secret key here |
| message | the message to hash here |
Reference outputs for example inputs above:
| Type | Hash |
| GDB commands by function - simple guide | |
| --------------------------------------- | |
| More important commands have a (*) by them. | |
| Startup | |
| % gdb -help print startup help, show switches | |
| *% gdb object normal debug | |
| *% gdb object core core debug (must specify core file) | |
| %% gdb object pid attach to running process | |
| % gdb use file command to load object |
| yum --enablerepo=base-debuginfo install -y kernel-debuginfo-$(uname -r) |
I have following object:
var cities={10:'Tashkent', 14:'Karakalpakiya', 16:'Andijan'};I want sort it by city names, so after sort it should be:
var cities={16:'Andijan', 14:'Karakalpakiya', 10:'Tashkent'};But I can't sort object properties, instead can convert object into array, then sort items.