I hereby claim:
- I am alejandro-isaza on github.
- I am alejandroisaza (https://keybase.io/alejandroisaza) on keybase.
- I have a public key ASCM3gI4LvapxCFM9qGiEjTrwHZX56TreIXlOjxU7E3kHAo
To claim this, I am signing this object:
@interface UIImage (Orientation) | |
- (UIImage*)imageByNormalizingOrientation; | |
@end | |
@implementation UIImage (Orientation) | |
- (UIImage*)imageByNormalizingOrientation { |
public static String toCurlRequest(HttpURLConnection connection, byte[] body) { | |
StringBuilder builder = new StringBuilder("curl -v "); | |
// Method | |
builder.append("-X ").append(connection.getRequestMethod()).append(" \\\n "); | |
// Headers | |
for (Entry<String, List<String>> entry : connection.getRequestProperties().entrySet()) { | |
builder.append("-H \"").append(entry.getKey()).append(":"); | |
for (String value : entry.getValue()) |
Greek: | |
Α Β Γ Δ Ε Ζ Η Θ Ι Κ Λ Μ Ν Ξ Ο Π Ρ Σ Τ Υ Φ Χ Ψ Ω | |
α β γ δ ε ζ η θ ι κ λ μ ν ξ ο π ρ σ τ υ φ χ ψ ω | |
Superscript: | |
x⁰ x¹ x² x³ x⁴ x⁵ x⁶ x⁷ x⁸ x⁹ x⁺ x⁻ x⁼ xⁱ xⁿ | |
Subscript: | |
x₀ x₁ x₂ x₃ x₄ x₅ x₆ x₇ x₈ x₉ x₊ x₋ x₌ | |
xₐ xₑ xₒ xₓ xₔ |
Simple | |
┌───┬───┬───┐ | |
│ │ │ │ | |
├───┼───┼───┤ | |
│ │ │ │ | |
├───┼───┼───┤ | |
│ │ │ │ | |
└───┴───┴───┘ | |
Thick |
I hereby claim:
To claim this, I am signing this object:
import Foundation | |
public extension Character { | |
/// Determine if the character is a space, tab or newline | |
public func isSpace() -> Bool { | |
return self == " " || self == "\t" || self == "\n" || self == "\r" | |
} | |
/// Conver the character to a UTF16 code unit | |
public var utf16: UInt16 { |
#pragma GCC diagnostic push | |
#pragma GCC diagnostic ignored "-Wdeprecated-declarations" | |
UIFont* font = [UIFont fontWithName:@"Baskerville-BoldItalic" size:26]; | |
NSString* latinString = @"W"; | |
CGSize latinSize = [latinString sizeWithFont:font]; | |
NSString* kanjiString = @"儸"; | |
CGSize kanjiSize = [kanjiString sizeWithFont:font]; |
C++ has a reputation of being an experts-only low-level programming language. But this is not the case anymore. C++11 and 14 introduce smart pointers, multi-threading, lambdas, move semantics, scoped enums, const expressions, user-defined literals, and a lot of other new features. The C++ standards committee is shortening the release cycle and modernizing the language.
This workshop is an introduction to new features and best practices of modern C++. We will delve into the core of C++ and all new features introduced in C++11 and C++14. There are two specific aims: to introduce you to C++ with emphasis on modern features and to help you make well-informed decisions when writing C++ code.
On completion of this workshop you should be able to:
#!/usr/bin/python | |
import lldb | |
import os | |
import re | |
import subprocess | |
import fblldbbase as fb | |
def lldbcommands(): | |
return [ PrintToFile() ] |
public extension CollectionType where Index == Int, Generator.Element: Comparable { | |
/// Perform a binary search for an element. | |
/// | |
/// - precondition: The elements in the collection are sorted. | |
/// - complexity: O(log₂(n)) | |
/// | |
/// - returns: The index of the element or `nil` if the element was not found. | |
public func binarySearch(element: Generator.Element) -> Index? { | |
var low = startIndex | |
var high = endIndex |