duplicates = multiple editions
A Classical Introduction to Modern Number Theory, Kenneth Ireland Michael Rosen
A Classical Introduction to Modern Number Theory, Kenneth Ireland Michael Rosen
This explains how to setup for GitHub projects which automatically generates Doxygen code documentation and publishes the documentation to the gh-pages branch using Travis CI.
This way only the source files need to be pushed to GitHub and the gh-pages branch is automatically updated with the generated Doxygen documentation.
Get an account at Travis CI. Turn on Travis for your repository in question, using the Travis control panel.
To create a clean gh-pages branch, with no commit history, from the master branch enter the code below in the Git Shell. This will create a gh-pages branch with one file, the README.md in it. It doesn't really matter what file is uploaded in it since it will be overwritten when the automatically generated documentation is published to th
| Why do compilers even bother with exploiting undefinedness signed overflow? And what are those | |
| mysterious cases where it helps? | |
| A lot of people (myself included) are against transforms that aggressively exploit undefined behavior, but | |
| I think it's useful to know what compiler writers are accomplishing by this. | |
| TL;DR: C doesn't work very well if int!=register width, but (for backwards compat) int is 32-bit on all | |
| major 64-bit targets, and this causes quite hairy problems for code generation and optimization in some | |
| fairly common cases. The signed overflow UB exploitation is an attempt to work around this. |
It's now here, in The Programmer's Compendium. The content is the same as before, but being part of the compendium means that it's actively maintained.
| #include <lwan.h> | |
| #include <lwan-template.h> | |
| #include <strbuf.h> | |
| struct thing { | |
| lwan_tpl_list_generator_t generator; | |
| const char *name; | |
| }; |
| --deletes in Document | |
| --at this point all associated media files are deleted | |
| delete from umbracoDomains where id in (select id from umbracoNode where path like '%-20%' and id!=-20); | |
| delete from cmsDocument where nodeId in (select id from umbracoNode where path like '%-20%' and id!=-20); | |
| --deletes in Content | |
| delete from cmsPropertyData where contentNodeId in (select id from umbracoNode where path like '%-20%' and id!=-20); | |
| delete from cmsPreviewXml where nodeId in (select id from umbracoNode where path like '%-20%' and id!=-20); | |
| delete from cmsContentVersion where ContentId in (select id from umbracoNode where path like '%-20%' and id!=-20); | |
| delete from cmsContentXml where NodeId in (select id from umbracoNode where path like '%-20%' and id!=-20); |
| This work, excluding the Arch Linux logo, is made available under CC0: https://creativecommons.org/publicdomain/zero/1.0/ |
| #include <stdio.h> | |
| #include <stdlib.h> | |
| #include <stdint.h> | |
| #ifdef _MSC_VER | |
| #include <intrin.h> /* for rdtscp and clflush */ | |
| #pragma optimize("gt",on) | |
| #else | |
| #include <x86intrin.h> /* for rdtscp and clflush */ | |
| #endif |
| #!/usr/bin/bash | |
| # Get entry point from N64 ROM | |
| dd if=test.z64 bs=1 skip=8 count=4 of=entrypoint >& /dev/null | |
| # Convert entrypoint to little endian | |
| #mips-elf-objcopy -I binary -O binary --reverse-bytes=4 entrypoint entrypoint | |
| # Construct an ELF | |
| mips-elf-objcopy -I binary test.z64 -O elf32-bigmips -B mips --adjust-section-vma .data+0x80000000 foo.elf | |
| # Patch to MIPS III | |
| printf '\x20\x00\x00\x00' | dd bs=1 seek=36 count=4 conv=notrunc of=foo.elf >& /dev/null |
| #include <stdlib.h> | |
| /* | |
| * Defer an expression. | |
| * This requires a block in an outer scope to have called defer_init, | |
| * and the deferred statements will run once defer_run is called. | |
| */ | |
| #define defer(expr) \ | |
| do { \ | |
| __label__ _defer_label; \ |