This file contains 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 <array> | |
#include <atomic> | |
#include <csignal> | |
#include <unordered_set> | |
#include <arpa/inet.h> | |
#include <cstdio> | |
#include <cstdlib> | |
#include <ctime> | |
#include <fcntl.h> |
This file contains 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
/*** | |
* @brief Convert a string literal to a compile-time integer constant. | |
* @tparam IntT The integer type to return. | |
* @tparam CharT The character type of the string literal. | |
* @tparam NameLength The length of the string literal. | |
* @tparam NameIndex The current index of the string literal. | |
* @tparam TBytes The number of bytes in the integer type. | |
* @param name The string literal to convert. | |
* @return The integer constant. | |
*/ |
This file contains 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
from pathlib import Path | |
import r2pipe | |
# Instructions that are not available on 8086/8088: | |
_unsupported_instructions = [ | |
'enter', | |
'leave', | |
'popa', | |
'pusha', |
This file contains 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
git lfs ls-files -s | rev | cut -d'(' -f1 | cut -c2- | rev | sed -e 's;TB;*1024*1024*1024+;' -e 's;MB;*1024*1024+;' -e 's;KB;*1024+;' -e 's;B;+;'|tr -d '\n' | rev | cut -c2- | rev | bc -l |
This file contains 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
enum IteratorState { | |
First, | |
HasNext, | |
Done, | |
} | |
pub struct PermutationInPlace<'a, T> { | |
state: IteratorState, | |
counter: Vec<usize>, |
This file contains 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
body { | |
font-family: -apple-system, BlinkMacSystemFont, | |
"Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", | |
"Fira Sans", "Droid Sans", "Helvetica Neue", | |
sans-serif; | |
} |
This file contains 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
get_cmake_property(_variableNames VARIABLES) | |
list (SORT _variableNames) | |
foreach (_variableName ${_variableNames}) | |
message(STATUS "${_variableName}=${${_variableName}}") | |
endforeach() |
This file contains 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
import attr | |
@attr.s(frozen=True, slots=True) | |
class T(object): | |
a = attr.ib(default=1, type=int) | |
b = attr.ib(default=1, type=int) | |
c = attr.ib(default=1, type=int) | |
d = attr.ib(default=1, type=int) | |
perfect = attr.ib(default=1, type=int) |
This file contains 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
real(kind=16) function term (p) | |
implicit none | |
integer p | |
real(kind=16) t1 | |
real(kind=16) t2 | |
real(kind=16) t3 | |
real(kind=16) t6 | |
real(kind=16) n | |
n = dble(p) |
This file contains 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
--- functions/Completion/Unix/_wget.org 2013-10-10 10:30:13.000000000 -0400 | |
+++ functions/Completion/Unix/_wget 2017-10-17 18:40:36.035294849 -0400 | |
@@ -3,6 +3,18 @@ | |
local curcontext="$curcontext" state line | |
typeset -A opt_args | |
+local user_agents | |
+user_agents=("Mozilla/5.0 (Linux; U; Android 4.0.3; ko-kr; LG-L160L Build/IML74K) AppleWebkit/534.30 (KHTML, like Gecko) Version/4.0 Mobile Safari/534.30" | |
+"Mozilla/5.0 (BlackBerry; U; BlackBerry 9900; en) AppleWebKit/534.11+ (KHTML, like Gecko) Version/7.1.0.346 Mobile Safari/534.11+" | |
+"NCSA Mosaic/1.0 (X11;SunOS 4.1.4 sun4m)" |
NewerOlder