- 🌏 The official ISO C++ Get Started! page
- 🎥 Herb Sutter: (Not Your Father’s) C++
- 🎥 Beginning with C++ by Jens Weller
This guide has moved to a GitHub repository to enable collaboration and community input via pull-requests.
https://github.com/alexellis/k8s-on-raspbian
Alex
| package main | |
| import ( | |
| "crypto/tls" | |
| "crypto/x509" | |
| "flag" | |
| "io/ioutil" | |
| "log" | |
| "net/http" | |
| ) |
As configured in my dotfiles.
start new:
tmux
start new with session name:
| import Foundation | |
| import UIKit | |
| class PassThroughView: UIView { | |
| override func pointInside(point: CGPoint, withEvent event: UIEvent?) -> Bool { | |
| for subview in subviews as [UIView] { | |
| if !subview.hidden && subview.alpha > 0 && subview.userInteractionEnabled && subview.pointInside(convertPoint(point, toView: subview), withEvent: event) { | |
| return true | |
| } | |
| } |
| /*----------------------------------------------------*/ | |
| #pragma mark - XCTAsserts | |
| /*----------------------------------------------------*/ | |
| XCTAssert(expression, format...); | |
| XCTAssertTrue(expression, format...); | |
| XCTAssertFalse(expression, format...); | |
| XCTAssertEqual(expression1, expression2, format...); | |
| XCTAssertNotEqual(expression1, expression2, format...); | |
| XCTAssertNil(expression, format...); |
| import pyes | |
| conn = pyes.es.ES("localhost:9200") | |
| all = conn.search(pyes.query.MatchAllQuery(), 'index', 'type', scan=True) | |
| for a in all: | |
| conn.index(a, 'index', 'type', a.get_id(), bulk=True) |