Skip to content

Instantly share code, notes, and snippets.

View noppefoxwolf's full-sized avatar
🦊
きつねかわいい!!!

noppe noppefoxwolf

🦊
きつねかわいい!!!
View GitHub Profile
--------------------------------------------
//
// ObjCClass.h
// ihvaiusdhv
//
// Created by Tomoya Hirano on 2019/02/18.
// Copyright © 2019 Tomoya Hirano. All rights reserved.
//
#import <Foundation/Foundation.h>
@noppefoxwolf
noppefoxwolf / playground.swift
Created October 5, 2018 05:17
Not implementable delegate in protocol extension.
import UIKit
import PlaygroundSupport
class MyViewController : UIViewController, Interface {
lazy var tap = UITapGestureRecognizer(target: self, action: #selector(tapped))
override func viewDidLoad() {
super.viewDidLoad()
tap.delegate = self
view.addGestureRecognizer(tap)
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>WFWorkflowActions</key>
<array>
<dict>
<key>WFWorkflowActionIdentifier</key>
<string>is.workflow.actions.getcurrentsong</string>
<key>WFWorkflowActionParameters</key>
#if TARGET_OS_SIMULATOR
#import <Metal/Metal.h>
#import <CoreVideo/CoreVideo.h>
/// CAMetalLayer
@class CAMetalLayer;
@protocol CAMetalDrawable <MTLDrawable>
@property(readonly) id <MTLTexture> texture;
@noppefoxwolf
noppefoxwolf / file0.swift
Created July 25, 2017 09:56
UITableViewの最後のセルのIndexPathを見つける ref: http://qiita.com/noppefoxwolf/items/05c4028d0c3fb6b44fef
extension UITableView {
var lastIndexPath: IndexPath? {
guard let dataSource = dataSource else { return nil }
return dataSource.lastIndexPath(in: self)
}
}
extension UITableViewDataSource {
func lastIndexPath(in tableView: UITableView) -> IndexPath? {
import UIKit
import TwitterVideoUploader
import STTwitter
import RxSwift
import MobileCoreServices
final class ViewController: UIViewController, UIImagePickerControllerDelegate, UINavigationControllerDelegate {
let 👝 = DisposeBag()
override func viewDidAppear(_ animated: Bool) {
[General]
FileVersion=57
NumberOfJoysticks=2
NumberOfButtons=32
DisplayMode=2
UseDiagonalInput=0
UsePOV8Way=0
Threshold=20
Threshold2=20
KeySendMode=0
package goddrinksjava;
/**
* The program GodDrinksJava implements an application that
* creates an empty simulated world with no meaning orpurpose.
*
* @author momocashew
*/
public class GodDrinksJava {
public static void main(String[] args) {
@noppefoxwolf
noppefoxwolf / FaceDetector.swift
Last active August 13, 2019 12:29
Easy use CIDetector.
//
// FaceDetector.swift
//
// Created by Tomoya Hirano on 2016/05/21.
// Copyright © 2016年 Tomoya Hirano. All rights reserved.
//
import UIKit
struct Face {
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<script src="http://code.jquery.com/jquery.min.js"></script>
<!-- Latest compiled and minified CSS -->
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.2/css/bootstrap.min.css">
<!-- Optional theme -->
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.2/css/bootstrap-theme.min.css">