Skip to content

Instantly share code, notes, and snippets.


Alex Antonyuk dev4dev

Block or report user

Report or block dev4dev

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile

Clang Formatter

  1. Install Alcatraz
  2. Install ClangFormat Plugin ClangFormat
  3. Restart Xcode
  4. Download .clang-format.yml to your home directory
  curl -L -o ~/.clang-format
View test.swift
// some shared services
protocol NetworkService: class {
func get() -> Any
class TestnetworkService: NetworkService {
func get() -> Any {
return "GET IT"
View wat.swift
let a = "13"
let b = "13a"
if let a = Int(a), let b = Int(b) {
let result = a + b
print(result) // will print only if b is correct number
} else {
print("fuck you spilberg")
dev4dev / shit.js
Last active Nov 17, 2018
shit parser
View shit.js
const data = ",q_auto/w_400/ 400w,,q_auto/w_800/ 800w,,q_auto/w_1200/ 1200w,,q_auto/w_1600/ 1600w,,q_auto/w_2000/
You can’t perform that action at this time.