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
bits 32 | |
cpu 386 | |
global _start | |
%define count 1073741824 | |
section .data | |
fizzMsg db "Fizz!", 0x0A | |
fizzLen equ $ - fizzMsg |
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
/* | |
* ## time.js ## | |
* counts how long the page has been open for and writes it to a clock | |
* to use: create an element with the id "clock" and run this script | |
*/ | |
(function () { | |
//-- config section --// | |
// element id to look for | |
var elemId = 'clock'; |
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
#pragma once | |
#if defined(WIN32) || defined(_WIN32) || defined(__WIN32__) || defined(__NT__) | |
#define PLATFORM_WINDOWS 1 | |
#define PLATFORM_NT 1 | |
#ifdef _WIN64 | |
#define PLATFORM_WINDOWS64 1 | |
#define PLATFORM_64 1 | |
#else | |
#define PLATFORM_WINDOWS32 1 |
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
function toArray() { | |
var length = this.length; | |
if ( | |
typeof length === "number" | |
&& length === length | |
&& length > 0 | |
) { | |
var array = new Array(length); | |
for (var i = 0; i < length; i++) { | |
array[i] = this[i]; |
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
use std::ops::Deref; | |
use rocket::request::{Request, FromRequest, Outcome}; | |
pub struct RawRequest<'a, 'r> (pub &'a Request<'r>); | |
impl<'a, 'r> Deref for RawRequest<'a, 'r> { | |
type Target = Request<'r>; |
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
#!/bin/sh | |
if [[ $(id -u) -eq 0 ]]; then | |
echo "This script cannot be run as root, root access will be requested through \`sudo\`" | |
exit 1 | |
fi | |
user="$USER" | |
group="$user" |
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
#!/bin/sh | |
# | |
# Lua's shell profile | |
# | |
# This is free and unencumbered software released into the public domain. | |
# | |
# Anyone is free to copy, modify, publish, use, compile, sell, or distribute | |
# this software, either in source code form or as a compiled binary, for any | |
# purpose, commercial or non-commercial, and by any means. | |
# |
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
function race(promises) { | |
return new Promise((resolve, reject) => { | |
for (const promise of promises) | |
if ( | |
promise | |
&& typeof promise === "object" | |
&& typeof promise.then === "function" | |
) promise.then(resolve, reject); | |
}); | |
} |
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 <stddef.h> | |
#include <stdint.h> | |
#include <stdlib.h> | |
#include <string.h> | |
#include <stdio.h> | |
#include <setjmp.h> | |
#include <errno.h> | |
#include <unistd.h> | |
#include <readline/readline.h> |
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
const target = '/core/os/x86_64/linux-firmware-20210818.c46b8c3-1-any.pkg.tar.zst'; | |
const targetReplace = '/$repo/os/$arch'; | |
const timeoutMs = 20_000; | |
const mirrors = [ | |
// Canada | |
'https://mirror.0xem.ma/arch/$repo/os/$arch', | |
'https://mirror.csclub.uwaterloo.ca/archlinux/$repo/os/$arch', | |
'https://mirror2.evolution-host.com/archlinux/$repo/os/$arch', |
OlderNewer