- 地図はマップケースに入れる
- マップケースはザックか身体に結ぶ
- コンパスは出しておくこと(しまうと使わない
- 高度計は明確な場所でマメに更新しておく
- 登りは基本的に尾根沿い。下りは注意する
- CPごとにバディとルートプランニングを共有すること
- 間違った場合の地形も想定しておく
- 関係が拗れたら物理的に近づく
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
{ | |
"plugins": [ | |
"stylelint-scss" | |
], | |
"rules": { | |
"scss/dollar-variable-no-missing-interpolation": true, | |
"at-rule-name-case": "lower", | |
"at-rule-name-space-after": "always", | |
"at-rule-semicolon-newline-after": "always", | |
"at-rule-empty-line-before": [ |
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 scale | |
var y = d3.scaleLinear() | |
.range([height, 0]) // 実際のピクセル | |
.domain([0,200]) // データの範囲 | |
.clamp(true) // domain範囲を超えるデータは自動的にカット | |
; | |
// extentは最大値と最小値を返す | |
var x = d3.scaleTime() | |
.range([0, width]) |
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 | |
var gulp = require("gulp"); | |
var concat = require("gulp-concat"); | |
var concatCss = require("gulp-concat-css"); | |
var sass = require('gulp-sass'); | |
var cssnext = require('gulp-cssnext'); | |
var browserSync = require('browser-sync').create(); | |
gulp.task('css', function() { | |
return gulp.src('lib/sass/*.scss') |
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
// prepare | |
let appDel: AppDelegate = UIApplication.sharedApplication().delegate as! AppDelegate | |
let context: NSManagedObjectContext = appDel.managedObjectContext | |
// save data | |
var newUser = NSEntityDescription.insertNewObjectForEntityForName("Users", inManagedObjectContext: context) | |
newUser.setValue("sigwyg", forKey: "username") | |
newUser.setValue("pass123", forKey: "password") | |
// contextにアクセスするには、エラー処理が必要 |
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
var toDoList = [String]() | |
toDoList.append(item.text!) | |
toDoList.count | |
toDoList.removeAtIndex(indexPath.row) | |
// 保存 | |
NSUserDefaults.standardUserDefaults().setObject(toDoList, forKey: "toDoList") | |
// 取得 | |
if NSUserDefaults.standardUserDefaults().objectForKey("toDoList") != nil { |
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
class SecondViewController: UIViewController, UITextFieldDelegate { | |
@IBOutlet weak var item: UITextField! | |
override func viewDidLoad() { | |
super.viewDidLoad() | |
// viewControllerがtextFieldに対するDelegate通信先であることを示す | |
self.item.delegate = self | |
} |
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
@IBOutlet weak var webView: UIWebView! | |
func configureView() { | |
let path = "http://example.com/" | |
if let postWebview = self.webView { | |
let requestURL = NSURL(string: path) | |
postWebview.loadRequest(NSURLRequest(URL: requestURL!)) | |
//let HTMLString:String! = "<h1>Hello Swift!</h1>" | |
//postWebview.loadHTMLString(HTMLString, baseURL: nil) |
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 icon-image | |
let imageView = cell.viewWithTag(1) as! UIImageView | |
let imgPath = object.valueForKey("imgPath")!.description as String | |
if imgPath.isEmpty { | |
imageView.image = UIImage(named: "no_img.png") | |
} | |
else { | |
let url = NSURL(string: imgPath) | |
let requestUrl = NSURLRequest(URL: url!) |
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
let url = NSURL(string: "http://example.com/json/")! | |
let task = NSURLSession.sharedSession().dataTaskWithURL(url) { (data, response, error) -> Void in | |
if error != nil { print(error) } | |
else { | |
//print(NSString(data: data!, encoding: NSUTF8StringEncoding)) | |
do { | |
// json to NSDictionary | |
let jsonResult = try NSJSONSerialization.JSONObjectWithData(data!, options: NSJSONReadingOptions.MutableContainers) as! NSDictionary |