Install ImageMagick for image conversion:
brew install imagemagick
Install tesseract for OCR:
brew install tesseract --all-languages
Or install without --all-languages and install them manually as needed.
| /* GraphicGlDemoActivity.java | |
| * Author: Yong Bakos | |
| * Since: 11/26/2012 | |
| * Thanks to: | |
| * Cube: http://intransitione.com/blog/create-a-spinning-cube-with-opengl-es-and-android/ | |
| * OpenGL Boilerplate: http://www.jayway.com/2009/12/03/opengl-es-tutorial-for-android-part-i/ | |
| */ | |
| package com.humanoriented.sudoku; | |
| import java.nio.ByteBuffer; |
| import org.apache.commons.net.ftp.* | |
| import java.io.InputStream | |
| import java.io.ByteArrayInputStream | |
| String ftphost = "127.0.0.1" | |
| String ftpuser = "test" | |
| String ftppwd = "test" | |
| int ftpport = 21 |
| # sources | |
| # http://www.scipy.org/install.html | |
| # http://sohliloquies.blogspot.ru/2015/07/setting-up-deep-dream-google-researchs.html | |
| # https://github.com/BVLC/caffe/wiki/Ubuntu-14.04-VirtualBox-VM | |
| # ~2gb dependencies | |
| mkdir deep-dream && cd deep-dream | |
| sudo apt-get install subversion cmake |
Install ImageMagick for image conversion:
brew install imagemagick
Install tesseract for OCR:
brew install tesseract --all-languages
Or install without --all-languages and install them manually as needed.
| // | |
| // WatchSessionManager.swift | |
| // WatchConnectivityDemo | |
| // | |
| // Created by Natasha Murashev on 9/3/15. | |
| // Copyright © 2015 NatashaTheRobot. All rights reserved. | |
| // | |
| import WatchConnectivity |
| /* | |
| Copy this into the console of any web page that is interactive and doesn't | |
| do hard reloads. You will hear your DOM changes as different pitches of | |
| audio. | |
| I have found this interesting for debugging, but also fun to hear web pages | |
| render like UIs do in movies. | |
| */ | |
| const audioCtx = new (window.AudioContext || window.webkitAudioContext)() |
| language: objective-c | |
| os: osx | |
| xcode_workspace: {workspace-name}.xcworkspace | |
| xcode_scheme: {workspace-name} | |
| xcode_sdk: iphonesimulator9.0 | |
| osx_image: xcode8 | |
| before_install: | |
| - | | |
| brew update | |
| gem install xcpretty -N --no-ri --no-doc |
| extension Locale { | |
| /// Returns an SF Symbol currency image that match's the device's current locale, for instance dollar in North America, Indian rupee in India, etc. | |
| func currencySFSymbol(filled: Bool, withConfiguration configuration: UIImage.Configuration? = nil) -> UIImage { | |
| // Default currency symbol will be the Animal Crossing Leaf coin to remain impartial to any specific country | |
| let defaultSymbol = UIImage(systemName: "leaf.circle\(filled ? ".fill" : "")")! | |
| guard let currencySymbolName = currencySymbolNameForSFSymbols() else { return defaultSymbol } | |
| let systemName = "\(currencySymbolName).circle\(filled ? ".fill" : "")" | |
| return UIImage(systemName: systemName, withConfiguration: configuration) ?? defaultSymbol |
| import UIKit | |
| extension UITextField { | |
| /// Add a trailing placeholder label that tracks the text as it changes | |
| func addTrailingPlaceholder(_ placeholder: String) { | |
| let label = UILabel() | |
| label.text = placeholder | |
| label.alpha = 0.3 | |
| label.isHidden = true | |
| addSubview(label) |
| /* | |
| * Unless explicitly stated otherwise all files in this repository are licensed under the Apache License Version 2.0. | |
| * This product includes software developed at Datadog (https://www.datadoghq.com/). | |
| * Copyright 2019-2020 Datadog, Inc. | |
| */ | |
| import Foundation | |
| public extension URLSession { | |
| internal typealias RequestInterceptor = HookedSession.RequestInterceptor |