-
Intro to iOS App Development with Swift (Udacity)
- https://www.udacity.com/course/intro-to-ios-app-development-with-swift--ud585
- 難易度: ★★
- 所要時間: 24 時間
-
iOS Development with Swift Tutorial
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
require 'fileutils' | |
# 全部の .svn ディレクトリを削除 | |
Dir::glob("../howm/**/.svn").each do |file| | |
puts file | |
s = File::stat(file) | |
if s.ftype == "directory" | |
# ディレクトリ削除 | |
FileUtils.rm_r(file) | |
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
# .bash_aliases | |
alias ls='ls -F' | |
alias ll='ls -l' | |
alias rm='rm -i' | |
if [ -x "`which vim`" ]; then | |
alias vi='vim' | |
fi | |
alias view='vi -R' |
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 -*- | |
require 'win32ole' | |
module Worksheet | |
def [] y,x | |
self.Cells.Item(y,x).Value | |
end | |
def []= y,x,value | |
self.Cells.Item(y,x).Value = value |
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
[core] | |
editor = vi | |
excludesfile = ~/.gitignore_global | |
[user] | |
[alias] | |
tree = log --graph --all --format=\"%x09%C(cyan bold)%an%Creset%x09%C(yellow)%h%Creset %C(ma | |
genta reverse)%d%Creset %s\" | |
[color] | |
ui = auto | |
[log] |
-
原典 (Starndard Markdown, SM)
http://daringfireball.net/projects/markdown/ -
GitHub Flavored Markdown (GFM)
https://help.github.com/articles/github-flavored-markdown -
WEB+DB PRESS Vol.83
もっと知りたい! Markdown
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
#!/usr/bin/env ruby | |
require 'openssl' | |
require 'base64' | |
key = "XXXXXXXXXXXXXXXX" | |
aes = OpenSSL::Cipher::AES.new("128-ECB") | |
aes.decrypt | |
aes.key = key | |
plain_text = "" |
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
/** | |
* TextView のテキストサイズを 1 行に収まるように調整。 | |
* | |
* https://gist.github.com/STAR-ZERO/2934490 を参考にした | |
*/ | |
public static float resizeTextView(TextView textView, float minTextSize) { | |
float textSize = getAdjustTextSize(textView.getWidth(), textView.getText().toString(), | |
textView.getTextSize(), minTextSize); | |
// テキストサイズ設定 (setTextSize はデフォルトで sp 指定なので TypedValue.COMPLEX_UNIT_PX を指定すること!) |
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
File.open("output.html", "w") do |f| | |
erb = ERB.new(File.read("template.html.erb"), nil, "-") | |
f.puts erb.result(binding) | |
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
which vim && alias vi='vim' |
NewerOlder