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
package us.d8u.balance; | |
import java.util.Map; | |
import java.util.Set; | |
import org.apache.http.HttpStatus; | |
import org.joda.time.DateTime; | |
import org.joda.time.format.ISODateTimeFormat; | |
import org.junit.Assert; | |
import org.junit.Test; |
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
import argparse | |
import os | |
import sys | |
import gnupg | |
import pyperclip | |
parser = argparse.ArgumentParser( | |
description="GPG clearsign whatever is on your clipboard and copy the signed data back" | |
) |
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 <sys/stat.h> | |
#include <time.h> | |
int main(int argc, char **argv) { | |
struct stat sb; | |
int rv; | |
rv = stat(argv[argc-1], &sb); | |
fprintf(stdout, "%ld\n", (time(NULL)-sb.st_atime)/86400); | |
return rv; |
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
#!perl | |
use strict; | |
use warnings; | |
use diagnostics; | |
`latexmk -xelatex -pdf ~/texRepo/HouseWarmingInvitation.tex`; | |
`mv HouseWarmingInvitation.pdf ~/public_html`; | |
`pdfseparate ./public_html/HouseWarmingInvitation.pdf public_html/invitees/%d`; | |
`rm -f ~/HouseWarmingInvitation.*`; | |
open my $tex, '/home/ec2-user/texRepo/HouseWarmingInvitation.tex' or die "$!"; |
OlderNewer