Rails5.x config/initializers/mime_types.rb
Mime::Type.register "gzip/json", :gzipjson
ActionDispatch::Http::Parameters::DEFAULT_PARSERS[:gzipjson] = lambda do |raw_body|
body = ActiveSupport::Gzip.decompress(raw_body)
JSON.parse(body)
end
do{ | |
let c = try NSString(contentsOfFile: path, encoding: CFStringConvertEncodingToNSStringEncoding(0x0422)) | |
print(c) | |
} catch { | |
fatalError(error.localizedDescription) | |
} |
i386 : iPhone Simulator | |
x86_64 : iPhone Simulator | |
iPhone1,1 : iPhone | |
iPhone1,2 : iPhone 3G | |
iPhone2,1 : iPhone 3GS | |
iPhone3,1 : iPhone 4 | |
iPhone3,2 : iPhone 4 GSM Rev A | |
iPhone3,3 : iPhone 4 CDMA | |
iPhone4,1 : iPhone 4S | |
iPhone5,1 : iPhone 5 (GSM) |
import com.auth0.jwt.JWT; | |
import com.auth0.jwt.JWTVerifier; | |
import com.auth0.jwt.algorithms.Algorithm; | |
import com.auth0.jwt.interfaces.DecodedJWT; | |
import java.time.LocalDateTime; | |
import java.time.ZoneId; | |
import java.util.Date; | |
class Scratch { |
import org.jooq.codegen.DefaultGeneratorStrategy; | |
import org.jooq.meta.Definition; | |
public class JQPrefixGeneratorStrategy extends DefaultGeneratorStrategy { | |
@Override | |
public String getJavaClassName(Definition definition, Mode mode) { | |
return "JQ" + super.getJavaClassName(definition, mode); | |
} | |
} |
/* | |
* Read video frame with FFmpeg and convert to OpenCV image | |
* | |
* Copyright (c) 2016 yohhoy | |
*/ | |
#include <iostream> | |
#include <vector> | |
// FFmpeg | |
extern "C" { | |
#include <libavformat/avformat.h> |
Rails5.x config/initializers/mime_types.rb
Mime::Type.register "gzip/json", :gzipjson
ActionDispatch::Http::Parameters::DEFAULT_PARSERS[:gzipjson] = lambda do |raw_body|
body = ActiveSupport::Gzip.decompress(raw_body)
JSON.parse(body)
end
Apple will reject apps that are using private url schemes (Ugh, Apple....) if they are pretty much obvius. Some apps are rejected and others are not, so, be aware of this issue before implementing any of those URL's in your app as a feature.
Core Animation's original name is Layer Kit
Core Animation is a compositing engine; its job is to compose different pieces of visual content on the screen, and to do so as fast as possible. The content in question is divided into individual layers stored in a hierarchy known as the layer tree
. This tree forms the underpinning for all of UIKit, and for everything that you see on the screen in an iOS application.
In UIView, tasks such as rendering, layout and animation are all managed by a Core Animation class called CALayer
. The only major feature of UIView that isn’t handled by CALayer is user interaction.
There are four hierarchies, each performing a different role: