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 d to the weekday of the (current date) | |
set h to the hours of the (current date) | |
if d is not in {Sunday, Saturday} then | |
if (8 < h and h < 12) or (18 < h and h < 21) then | |
tell application "Google Chrome" | |
open location "https://xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx" | |
end tell | |
end if | |
end if |
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
// | |
// UIView+border.swift | |
// Makuake | |
// | |
// Created by Takuya Okamoto on 1/9/18. | |
// Copyright © 2018 CyberAgent Crowd Funding, Inc. All rights reserved. | |
// | |
import UIKit | |
extension UIView { |
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 Cocoa | |
// https://github.com/DouglasHeriot/AutoGrowingNSTextField | |
// for AutoLayout | |
class AutoGrowingTextField: NSTextField { | |
var minHeight: CGFloat? = 100 |
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
tableView.estimatedRowHeight = 464//だいたいの高さの見積もり? | |
tableView.rowHeight = UITableViewAutomaticDimension |
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 CollectionViewWaterfallLayout | |
class WaterfallCollectionViewController: UIViewController, UICollectionViewDataSource, CollectionViewWaterfallLayoutDelegate { | |
var collectionView: UICollectionView! | |
init () { |
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
// | |
// SKTimingFunction.swift | |
// Pods | |
// | |
// Created by Takuya Okamoto on 2015/10/06. | |
// | |
// | |
// inspired by https://gist.github.com/raphaelschaad/6739676 |
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
defmacro __using__(_opts) do | |
quote do | |
use Ecto.Schema | |
import Ecto.Changeset | |
import Ecto.Query, only: [from: 2] | |
import Ecto.Model | |
use Ecto.Model.OptimisticLock | |
use Ecto.Model.Timestamps | |
use Ecto.Model.Dependent |
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
iex> [a: a] = [a: 1] | |
[a: 1] | |
iex> a | |
1 | |
iex> [a: a] = [a: 1, b: 2] | |
** (MatchError) no match of right hand side value: [a: 1, b: 2] | |
iex> [b: b, a: a] = [a: 1, b: 2] | |
** (MatchError) no match of right hand side value: [a: 1, b: 2] |
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
add = fn a, b -> a + b end | |
is_function add, 1 # false | |
add.(1, 2) # 3 |
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
dyld: Symbol not found: __TWPCSo7NSError13BrightFutures9ErrorTypeS0_ | |
Referenced from: /private/var/mobile/Containers/Bundle/Application/E5242F00-6D45-4101-964C-6D42B2CDDA87/APlayerViewController.app/APlayerViewController | |
Expected in: /private/var/mobile/Containers/Bundle/Application/E5242F00-6D45-4101-964C-6D42B2CDDA87/APlayerViewController.app/Frameworks/BrightFutures.framework/BrightFutures | |
in /private/var/mobile/Containers/Bundle/Application/E5242F00-6D45-4101-964C-6D42B2CDDA87/APlayerViewController.app/APlayerViewController | |
(lldb) | |
NewerOlder