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 java.util.ArrayList; | |
public class Address_Primes { | |
private static ArrayList<Integer> possibilities = new ArrayList<Integer>(); | |
private static int minimum = 5579; //Roy's address is bigger than 5579 | |
public static boolean is_prime(int x){ | |
for (int i = 2; i <= (Math.sqrt(x));i++){ | |
if (x % i == 0){ | |
return false; |
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
#!/bin/bash | |
# | |
# (Above line comes out when placing in Xcode scheme) | |
# | |
# Valid and working as of 11/4/2014 | |
# Xcode 6.1, XCode Server 4 | |
# | |
API_TOKEN="<Your TestFlight API Token>" |
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
(defun yank-to-clipboard () | |
"Use ANSI OSC 52 escape sequence to attempt clipboard copy" | |
;; https://sunaku.github.io/tmux-yank-osc52.html | |
(interactive) | |
(let ((tmx_tty (concat "/dev/" (shell-command-to-string "ps l | grep 'tmux attach' | grep -v grep | awk '{print $11}'"))) | |
(base64_text (base64-encode-string (encode-coding-string (substring-no-properties (nth 0 kill-ring)) 'utf-8) t))) | |
;; Check if inside TMUX | |
(if (getenv "TMUX") | |
(shell-command | |
(format "printf \"\033]52;c;%s\a\" > %s" base64_text tmx_tty)) |