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
tasks: | |
default: | |
vars: | |
LINE: | |
sh: task -l ^| peco | |
COLON: | |
sh: tmp="{{.LINE}}"; list=(${tmp/,/ }); echo ${list[1]} | |
TASK: | |
sh: tmp="{{.LINE}}"; list=(${tmp/,/ }); echo ${list[1]:0:-1} | |
DUMMY: |
管理者権限で powershell を起動して、以下のコマンドを実行する。
Set-ExecutionPolicy Unrestricted
. { iwr -useb http://boxstarter.org/bootstrapper.ps1 } | iex; get-boxstarter -Force
Install-BoxstarterPackage -PackageName "https://gist.githubusercontent.com/toruuetani/bc76abf2cc69b42d91bdcf815409040c/raw/311d8f3aa8c4f7756a50f390c074f5a346b9183e/boxstarter.txt" -DisableReboots
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 <stdio.h> | |
#include <stdint.h> | |
#include <stdbool.h> | |
#include <sys/time.h> | |
#define TX_MAX_ADVANCE_DELAY ((3 + 1) * 128 * 1E6) /* Maximum advance delay accepted for a TX packet, compared to current time */ | |
#define TX_MAX_ADVANCE_DELAY_UL ((3UL + 1UL) * 128UL * 1000000UL) | |
int main(void){ |
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
package main | |
import ( | |
"bufio" | |
"fmt" | |
"log" | |
"os" | |
) | |
func main() { |
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
// | |
// Promise.swift | |
// TestApp | |
// | |
// Created by toruuetani on 2016/05/17. | |
// Copyright © 2016年 ryoden. All rights reserved. | |
// | |
import Foundation |
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 TestViewController: UIViewController { | |
private var pickerView: UIPickerView! | |
private var pickerViewToolbar: UIToolbar! | |
private var pickerViewSelectedRow: Int? | |
override func didReceiveMemoryWarning() { | |
super.didReceiveMemoryWarning() | |
} | |
override func viewDidLoad() { |
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 UIKit | |
import AVFoundation | |
class BarcodeEncodingViewController: UIViewController { | |
private let session = AVCaptureSession() | |
private var prevLayer: AVCaptureVideoPreviewLayer! | |
private var hView = UIView() | |
override func didReceiveMemoryWarning() { | |
super.didReceiveMemoryWarning() |
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
2016-03-04 17:01:22.452 ParkingDemo[4049:2668694] Unable to simultaneously satisfy constraints. | |
Probably at least one of the constraints in the following list is one you don't want. | |
Try this: | |
(1) look at each constraint and try to figure out which you don't expect; | |
(2) find the code that added the unwanted constraint or constraints and fix it. | |
( | |
"<NSLayoutConstraint:0x1366aa540 H:[_UIButtonBarStackView:0x1366a4c40(<=0)]>", | |
"<NSLayoutConstraint:0x1366a5940 'UIView-leftMargin-guide-constraint' H:|-(5)-[UILayoutGuide:0x1366a5770'UIViewLayoutMarginsGuide'](LTR) (Names: '|':_UIButtonBarStackView:0x1366a4c40 )>", | |
"<NSLayoutConstraint:0x1366a59e0 'UIView-rightMargin-guide-constraint' H:[UILayoutGuide:0x1366a5770'UIViewLayoutMarginsGuide']-(5)-|(LTR) (Names: '|':_UIButtonBarStackView:0x1366a4c40 )>" | |
) |
NewerOlder