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
Vagrant.configure("2") do |config| | |
config.vm.box = "ubuntu/bionic64" | |
config.vm.provider "virtualbox" do |v| | |
v.memory = 4096 | |
v.cpus = 2 | |
end | |
config.vm.provision "docker" | |
# Create a private network, which allows host-only access to the machine | |
# using a specific IP. |
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
function anyframe-widget-insert-docker-ps() { | |
docker ps | tail -n +2 \ | |
| anyframe-selector-auto \ | |
| cut -d" " -f1 \ | |
| anyframe-action-insert | |
} | |
zle -N anyframe-widget-insert-docker-ps | |
bindkey '^xd' anyframe-widget-insert-docker-ps |
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
Include ./conf.d/*/config | |
Host * | |
UserKnownHostsFile /dev/null | |
StrictHostKeyChecking no | |
ServerAliveInterval 15 | |
RemoteForward 8377 localhost:8377 # clipperで使用 | |
PasswordAuthentication no | |
IdentitiesOnly yes | |
LogLevel FATAL |
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
object Euler{ | |
def main(args: Array[String]) = { | |
println(problem4) | |
} | |
def problem3 = { | |
def subfactor(n: Long, p: Long): List[Long] = | |
if (n < p * p) | |
List(n) | |
else if (n % p == 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
- (BOOL)webView:(UIWebView *)webView shouldStartLoadWithRequest:(NSURLRequest *)request navigationType:(UIWebViewNavigationType)navigationType | |
{ | |
if ([request.URL.absoluteString isEqualToString:request.mainDocumentURL.absoluteString]) { | |
// メインコンテンツの読込時 | |
} | |
// ... | |
} |
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/ | |
Pods/ | |
push | |
**/xcuserdata/* | |
**/*.xcworkspace/* | |
**/*.xcodeproj/* | |
!**/*.xcodeproj/project.pbxproj | |
!**/*.xcworkspace/contents.xcworkspacedata |
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
- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath | |
{ | |
TESTCell *cell = [tableView dequeueReusableCellWithIdentifier:@"Cell" forIndexPath:indexPath]; | |
NSDictionary *object = _objects[indexPath.row]; | |
NSLog(@"%@",object); | |
UIImage *image = [UIImage imageNamed:[object objectForKey:@"image"]]; | |
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
" System vimrc file for MacVim | |
" | |
" Maintainer: Bjorn Winckler <bjorn.winckler@gmail.com> | |
" Last Change: Sat Aug 29 2009 | |
set nocompatible | |
" The default for 'backspace' is very confusing to new users, so change it to a | |
" more sensible value. Add "set backspace&" to your ~/.vimrc to reset it. | |