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
| #include "syscalls.h" | |
| #define internal static | |
| #define stdout 1 | |
| typedef unsigned long int uintptr; /* size_t */ | |
| typedef long int intptr; /* ssize_t */ | |
| #ifdef __x86_64__ | |
| asm ( | |
| "_start:\n" | |
| " xorl %ebp,%ebp\n" | |
| " movq 0(%rsp),%rdi\n" /* argc loaded */ |
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
| #include <stdio.h> | |
| int main(void); | |
| int main(void){ | |
| int m, n; | |
| int r = 1; | |
| scanf("%d", &m); | |
| scanf("%d", &n); | |
| if (m < n) { |
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
| GNU GENERAL PUBLIC LICENSE | |
| Version 3, 29 June 2007 | |
| Copyright (C) 2007 Free Software Foundation, Inc. <https://fsf.org/> | |
| Everyone is permitted to copy and distribute verbatim copies | |
| of this license document, but changing it is not allowed. | |
| Preamble | |
| The GNU General Public License is a free, copyleft license for |
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
| global sys_read | |
| global sys_write | |
| global sys_errno | |
| section .text | |
| generic_syscall_3: | |
| push ebp | |
| mov ebp, esp | |
| push ebx | |
| mov ebx, [ebp + 8] |
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
| school | |
| books | |
| book | |
| notebook | |
| calendar | |
| snake | |
| angry | |
| pill | |
| running | |
| child |
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
| #!/usr/bin/env python3 | |
| from PIL import Image | |
| img = Image.open('image.jpg').convert('L') | |
| img.save('greyscale.jpg') |
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
| *.md linguist-documentation=false | |
| *.md linguist-detectable | |
| *.adoc linguist-documentation=false | |
| *.adoc linguist-detectable | |
| *.rst linguist-documentation=false | |
| *.rst linguist-detectable | |
| *.sql linguist-documentation=false | |
| *.sql linguist-detectable | |
| *.creole linguist-documentation=false | |
| *.creole linguist-detectable |
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
| while [ 1 ] | |
| do | |
| p=$(date +%Y)/$(date +%m)/$(date +%d)/$(date +%H) | |
| mkdir -p $p | |
| out=$p/$(date +%s).txt | |
| curl "http://api.open-notify.org/iss-now.json" > $out | |
| git add -A | |
| git commit -m "changed $(date +%s)" | |
| git push | |
| date |
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
| for file in *.jpg.jpg; do | |
| mv -- "$file" "${file%.jpg.jpg}.jpg" | |
| done |
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
| #include <stdio.h> | |
| #include <string.h> | |
| char tracks[][80] = { | |
| "I left my heart in Harvard Med School", | |
| "Newark, Newark - a wonderful town", | |
| "Dancing with a Dork", | |
| "From here to maternity", | |
| "The girl from Iwo Jima", | |
| }; |
NewerOlder