I hereby claim:
- I am ahills60 on github.
- I am andrewhills (https://keybase.io/andrewhills) on keybase.
- I have a public key ASCuEzkROEF8LcLx8Vbib1tug1461_lAhQd-B6Yg0QklaAo
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
Function Get-FileName($initialDirectory) | |
{ | |
[System.Reflection.Assembly]::LoadWithPartialName("System.windows.forms") | Out-Null | |
$OpenFileDialog = New-Object System.Windows.Forms.OpenFileDialog | |
$OpenFileDialog.initialDirectory = $initialDirectory | |
$OpenFileDialog.filter = "Text files (*.txt)| *.txt" | |
$OpenFileDialog.ShowDialog() | Out-Null | |
$OpenFileDialog.filename | |
} |
#include <stdlib.h> | |
#include <stdio.h> | |
#include <stdint.h> | |
#define ceilu32(x, y) ((((((uint32_t) x) << 16) / (uint32_t) y) + 0xffff) >> 16) | |
int main(void) | |
{ | |
uint16_t var1, var2, result; | |
import sys, copy | |
def clearvars(): | |
varlist = copy.copy(sys._getframe(1).f_locals) | |
for var in varlist: | |
if "_" not in var and not isinstance(varlist[var], type(sys)): | |
print("Deleting %s..." % var) | |
del sys._getframe(1).f_locals[var] |
Selection.Font.Name = "Arial" | |
Selection.Font.Size = 9 | |
Selection.ParagraphFormat.LineSpacingRule = Word.WdLineSpacing.wdLineSpaceSingle |
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
#define useshort | |
#ifdef useshort | |
// For 16-bit integers (short) | |
#define DIVU10(q, r, n) q = (n >> 1) + (n >> 2); q += q >> 4; q += q >> 8; q >>= 3; r = n - (((q << 2) + q) << 1); n = q + (r > 9); r -= (((r > 9) << 2) + (r > 9)) << 1; | |
#define NOBITS 16 | |
#define STRSIZE 26 | |
#define DEFSTR {"0000000000000000 (00000)\n\r"}; | |
#else | |
// For 32-bit integers (long) |
#include <stdio.h> | |
#include <stdlib.h> | |
#include <string.h> | |
#include <math.h> | |
char *PrettyNumbers(long long int inputBytes) | |
{ | |
double tempVar = log10((double) inputBytes); | |
int noElements = (int) floor(tempVar / 3.0), n, remn = (int) (tempVar + 1) % 3; | |
char *output, tempString[4]; |
#include <stdio.h> | |
#include <stdlib.h> | |
#include <string.h> | |
#include <math.h> | |
char *PrintMemory(long long int inputBytes) | |
{ | |
double tempVar = log10((double) inputBytes); | |
int noElements = (int) floor(tempVar / 3.0); | |
char *conv, units = '\0', *output; |
#!/bin/bash | |
# This script bootstraps another with parameters | |
# Take action based on input parameter | |
echo "Executing command..." | |
$1 | |
if ["$?" -eq "0"] |