Skip to content

Instantly share code, notes, and snippets.

kfurue

Block or report user

Report or block kfurue

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View CudaMiner on Jetson TK1
$ git clone https://github.com/noxo/CudaMiner.git
$ cd CudaMiner
$ ./autogen.sh
$ ./configure
$ vim Makefile
@@ -310,6 +320,7 @@ MAINT = #
MAKEINFO = makeinfo
MKDIR_P = /bin/mkdir -p
NVCC = nvcc
@kfurue
kfurue / file0.swift
Created May 29, 2018
SwiftでGenericsを使ったTableViewの実装 ref: https://qiita.com/kfurue/items/caf4e866891b9b8a7bdc
View file0.swift
import Foundation
import UIKit
protocol Nibable: NSObjectProtocol {
static var nibName: String { get }
static var nib: UINib { get }
}
extension Nibable {
static var nibName: String {
View file0.txt
@refresh_token=nil
View file0.swift
override func viewDidAppear(_ animated: Bool) {
let keychain = Keychain(service: "kfurue.RxSwiftRailsTutorial-token")
if keychain["oauthToken"] == nil {
oauthswift.authorizeURLHandler = SafariURLHandler(viewController: self, oauthSwift: oauthswift)
oauthswift.authorize(
withCallbackURL: URL(string: "sample-app://oauth-callback")!,
scope: "", state: "hoge",
success: { credential, _, _ in
print(credential.oauthToken)
View comprehension.py
data = [1, 2, 3, 4, 5, 6, 7, 8]
events = []
for num in data :
if not num % 2:
events.append(num)
print(events)
events = [ num for num in data if not num % 2]
print(events)
@kfurue
kfurue / swift3-RxSwift.sh
Last active Dec 22, 2017
Swagger Code Generator for swift3-RxSwift Raw
View swift3-RxSwift.sh
java -jar swagger-codegen-cli-2.2.3.jar generate \
-i swagger_doc.json \
-l swift3 \
--language-specific-primitives Int \
--type-mappings integer=Int \
-o swift3-RxSwift \
--additional-properties projectName=SampleAppClient,podAuthors=kfurue,responseAs=RxSwift
@kfurue
kfurue / objc.sh
Created Aug 19, 2017
Swagger Code Generator for objc
View objc.sh
java -jar swagger-codegen-cli-2.2.3.jar generate \
-i swagger_doc.json \
-l objc \
-o objc \
--additional-properties podName=SampleAppClient,podVersion=0.1.0,authorName=kfurue,coreData=true
@kfurue
kfurue / swift4-RxSwift.sh
Created Aug 19, 2017
Swagger Code Generator for swift4-RxSwift
View swift4-RxSwift.sh
java -jar swagger-codegen-cli-2.2.3.jar generate \
-i swagger_doc.json \
-l swift4 \
--language-specific-primitives Int \
--type-mappings integer=Int \
-o swift4-RxSwift \
--additional-properties projectName=SampleAppClient,podAuthors=kfurue,responseAs=RxSwift
@kfurue
kfurue / retrofit2-RxJava2.sh
Created Aug 19, 2017
Swagger Code Generator for retrofit2-RxJava2
View retrofit2-RxJava2.sh
java -jar swagger-codegen-cli-2.2.3.jar generate \
-i swagger_doc.json \
-l java --library=retrofit2 \
-D hideGenerationTimestamp=true \
-o retrofit2-RxJava2 \
--additional-properties projectName=SampleAppClient,podAuthors=kfurue,useRxJava2=true
@kfurue
kfurue / retrofit2.sh
Created Aug 19, 2017
Swagger Code Generator for retrofit2
View retrofit2.sh
java -jar swagger-codegen-cli-2.2.3.jar generate \
-i swagger_doc.json \
-l java --library=retrofit2 \
-D hideGenerationTimestamp=true \
-o retrofit2 \
--additional-properties projectName=SampleAppClient,podAuthors=kfurue
You can’t perform that action at this time.