This file contains hidden or 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 | |
| class OnboardingManager { | |
| private let userDefaults: UserDefaults | |
| init(userDefaults: UserDefaults = .standard) { | |
| self.userDefaults = userDefaults | |
| } | |
| func presentOnboardingControllerIfNeeded(in viewController: UIViewController) { |
This file contains hidden or 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 trick is to link the DeviceSupport folder from the beta to the stable version. | |
| # sudo needed if you run the Mac App Store version. Always download the dmg instead... you'll thank me later :) | |
| # Support iOS 15 devices (Xcode 13.0) with Xcode 12.5: | |
| sudo ln -s /Applications/Xcode-beta.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport/15.0 /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport | |
| # Then restart Xcode and reconnect your devices. You will need to do that for every beta of future iOS versions | |
| # (A similar approach works for older versions too, just change the version number after DeviceSupport) |
This file contains hidden or 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
| extension UIBezierPath | |
| { | |
| func interpolatePointsWithHermite(interpolationPoints : [CGPoint]) | |
| { | |
| let n = interpolationPoints.count - 1 | |
| for var ii = 0; ii < n; ++ii | |
| { | |
| var currentPoint = interpolationPoints[ii] | |
This file contains hidden or 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 | |
| /// A very simple example view that can accept keyboard input and add or delete text from an enclosed label. | |
| class CustomTextInputView : UIControl, UIKeyInput { | |
| var label : UILabel? | |
| override func canBecomeFirstResponder() -> Bool { | |
| return true | |
| } |
This file contains hidden or 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 java.util.Map; | |
| import java.util.Comparator; | |
| import java.util.Collections; | |
| int index = 0; | |
| // sprite sheet | |
| PImage pokemon; | |
| // current pokemon sprite | |
| PImage current; | |
| // current pie chart |
This file contains hidden or 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
| 301 https://github.com/zxdrive/imouto.host |
This file contains hidden or 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
| # Filename : Image2Map.py | |
| # Authors : Alex Swan, Georg Muntingh and Bjorn Lindeijer | |
| # Version : 1.3 | |
| # Date : June 17, 2013 | |
| # Copyright : Public Domain | |
| import os, sys, networkx | |
| from PIL import Image | |
| class TileMap: |
This file contains hidden or 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
| /* | |
| * You have to include oauth.js and sha1.js from here http://oauth.googlecode.com/svn/code/javascript/ | |
| * / | |
| var url = "https://userstream.twitter.com/2/user.json"; | |
| var accessor = { | |
| token: "", | |
| tokenSecret: "", | |
| consumerKey : "", | |
| consumerSecret: "" |
NewerOlder