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 ( | |
"fmt" | |
"github.com/jasonlvhit/gocron" | |
) | |
func main() { | |
scheduler := gocron.NewScheduler() |
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
The MIT License (MIT) | |
Copyright (c) 2015 Tomoya Kose. | |
Permission is hereby granted, free of charge, to any person obtaining a copy | |
of this software and associated documentation files (the "Software"), to deal | |
in the Software without restriction, including without limitation the rights | |
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | |
copies of the Software, and to permit persons to whom the Software is | |
furnished to do so, subject to the following conditions: |
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 python3 | |
# coding: utf-8 | |
def main(): | |
import sys | |
local_ref, local_sha1, remote_ref, remote_sha1 = sys.stdin.readline().split() | |
remote_branch = extract_branch(remote_ref) | |
if remote_branch in list_protected_branches(): |
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 Node<T> { | |
let value: T | |
init(value: T) { | |
self.value = value | |
} | |
} | |
class Terminal<T>: Node<T> { | |
} |
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 python3 | |
# coding: utf-8 | |
def main(context): | |
from zipfile import ZipFile | |
with ZipFile(context.archive) as f: | |
if context.password is not None: | |
f.setpassword(context.password.encode()) |
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 ( | |
"bytes" | |
"encoding/binary" | |
"fmt" | |
"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
import UIKit | |
public protocol ConditionalPresenter: class { | |
var view: UIView! { get } | |
func addChildViewController(childController: UIViewController) | |
var current: UIViewController! { get set } | |
func generateController() -> UIViewController | |
} |
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
==> Cloning https://github.com/terhechte/SourceKittenDaemon.git | |
Updating /Library/Caches/Homebrew/sourcekitten-daemon--git | |
git config remote.origin.url https://github.com/terhechte/SourceKittenDaemon.git | |
git config remote.origin.fetch +refs/tags/0.1.5:refs/tags/0.1.5 | |
==> Checking out tag 0.1.5 | |
git checkout -f 0.1.5 -- | |
HEAD is now at 2a8eef4... Bump to 0.1.5 | |
git reset --hard 0.1.5 | |
HEAD is now at 2a8eef4 Bump to 0.1.5 | |
git submodule foreach --recursive git submodule sync |
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 Foundation | |
public func buildMapUrl( | |
latitude latitude: Double, | |
longitude: Double, | |
label: String | |
) -> NSURL? { | |
let components = NSURLComponents(string: "http://maps.apple.com/") | |
if #available(iOS 9, *) { |
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
whitelist_rules: | |
# Correctable rules | |
- "colon" | |
- "comma" | |
- "leading_whitespace" | |
- "legacy_cggeometry_functions" | |
- "legacy_constrant" | |
- "legacy_constructor" | |
- "legacy_nsgeometry_functions" | |
- "return_arrow_whitespace" |