U.S. Citizenship and Immigration Services
Office of the Director (MS 2000)
Washington, DC 20529-2000
March 31, 2017
PM-602-0142
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
- (void)testIndexPathEquality { | |
NSIndexPath *ip1 = [NSIndexPath indexPathForRow:0 inSection:0]; | |
NSIndexPath *ip2 = [NSIndexPath indexPathForRow:0 inSection:0]; | |
STAssertTrue([ip1 isEqual:ip2], @"indexpath の比較"); | |
} |
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
set t to "ABCDEFGHIJKLMNOPQRSTUVWXYZ" | |
set t to t & t & t & t & t & t & t & t | |
set t to t & t & t & t & t & t & t & t | |
set t to t & t & t & t & t & t & t & t | |
set t to t & t & t & t & t & t & t & t | |
set t to t & t & t & t & t & t & t & t | |
set t to t & t & t & t & t & t & t & t | |
set thePath to choose file name default name "stupid big data" default location (path to temporary items) |
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 <Foundation/Foundation.h> | |
@interface NSObject(BasukeAddition) | |
- (id)performSelectorIfExists:(SEL)aSelector; | |
- (id)performSelectorIfExists:(SEL)aSelector withObject:(id)object; | |
- (id)performSelectorIfExists:(SEL)aSelector withObject:(id)object1 withObject:(id)object2; | |
@end |
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 pygame.mixer | |
from time import sleep | |
import RPi.GPIO as GPIO | |
from sys import exit | |
GPIO.setmode(GPIO.BCM) | |
GPIO.setup(24, GPIO.IN) | |
print "Ready." |
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
# xcode-build-bump.sh | |
# @desc Auto-increment the build number every time the project is run. | |
# @usage | |
# 1. Select: your Target in Xcode | |
# 2. Select: Build Phases Tab | |
# 3. Select: Add Build Phase -> Add Run Script | |
# 4. Paste code below in to new "Run Script" section | |
# 5. Drag the "Run Script" below "Link Binaries With Libraries" | |
# 6. Insure that your starting build number is set to a whole integer and not a float (e.g. 1, not 1.0) |
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 time import sleep | |
import RPi.GPIO as GPIO | |
from sys import exit | |
GPIO.setmode(GPIO.BCM) | |
pins = [18,23,24,25] | |
[GPIO.setup(pin, GPIO.IN) for pin in pins] |
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
# -*- coding: utf-8 | |
import RPi.GPIO as GPIO | |
import mosquitto | |
import sys | |
from datetime import datetime | |
PINS = (18, 23, 24, 25) | |
SERVER = "sample.example.com" |
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
<?php | |
$salt = genrandom(40); | |
$seed = genrandom(29, "0123456789"); | |
echo "\tConfigure::write('Security.salt', '$salt');\n"; | |
echo "\tConfigure::write('Security.cipherSeed', '$seed');\n"; | |
function genrandom($len, $salt = null) { | |
if (empty($salt)) { |
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
module Main exposing (main) | |
import Html exposing (Html, button, div, text) | |
import Html.Events exposing (onClick) | |
main : Program Never Model Msg | |
main = | |
Html.beginnerProgram | |
{ model = 0 |