Skip to content

Instantly share code, notes, and snippets.

dede.exe dedeexe

  • Freelancer
  • Brazil
Block or report user

Report or block dedeexe

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
View gambiarra.swift
import UIKit
class Learner {
var name: String
var age: Int
init(name:String, age:Int) { = name
self.age = age
View Perguntas.
- Qual é o ciclo de vida da ViewController?
viewDidLoad - Após a view ser carregada em memória e todos os seus componentes
viewWillAppear - Antes da view ser apresentada
viewDidAppear - Após a view ser apresentada
viewWillDisappear - Antes da view desaparecer
viewDidDisappear - Após a view desaparecer
- Qual é o ciclo de vida do AppDelegate?
dedeexe / DynamicFunctions.swift
Created Apr 25, 2019 — forked from neonichu/DynamicFunctions.swift
Using dlopen / dlsym to call C functions from Swift
View DynamicFunctions.swift
import Darwin
let handle = dlopen("/usr/lib/libc.dylib", RTLD_NOW)
let sym = dlsym(handle, "random")
let functionPointer = UnsafeMutablePointer<() -> CLong>(sym)
let result = functionPointer.memory()
dedeexe / database.rules.json
Created Nov 17, 2018 — forked from codediodeio/database.rules.json
Common Database Rules for Firebase
View database.rules.json
// No Security
"rules": {
".read": true,
".write": true
dedeexe / countrycodes.json
Created Oct 26, 2018
A JSON with all country codes.
View countrycodes.json
"name":"Åland Islands",
dedeexe / Data+hash
Created Sep 18, 2018
Hash using Swift + Common Crypto
View Data+hash
// Data+hash.swift
// HashTools
// Created by dede.exe on 17/09/18.
// Copyright © 2018 dede.exe. All rights reserved.
import Foundation
dedeexe / Data+MimeType.swift
Created Aug 20, 2018
Data MimyType analyse extension
View Data+MimeType.swift
import Foundation
import MobileCoreServices
extension Data {
enum MimeType : Int {
case imageJPEG = 0xff
case imagePNG = 0x89
case applicationPDF = 0x25
dedeexe / user.swift
Last active Jun 23, 2018
User model example
View user.swift
{ "name":"Jose", "age":33, "height": 1.70, "weigh":70 }
dedeexe / KeyboardObserver.swift
Last active Apr 27, 2018
Adjust Screen when keyboard shows or hide
View KeyboardObserver.swift
extension HellViewController {
func startObservers() {
let nc = NotificationCenter.default
nc.addObserver(self, selector: #selector(showKeyboard), name: NSNotification.Name.UIKeyboardWillShow, object: nil)
nc.addObserver(self, selector: #selector(hideKeyboard), name: NSNotification.Name.UIKeyboardWillHide, object: nil)
func stopObservers() {
let nc = NotificationCenter.default
nc.removeObserver(self, name: NSNotification.Name.UIKeyboardWillShow, object: nil)
dedeexe / HotSpot.swift
Last active Apr 4, 2018
Changing App Wifi
View HotSpot.swift
import Foundation
import NetworkExtension
import SystemConfiguration.CaptiveNetwork
public enum HotSpotError : Error, LocalizedError {
case featureNotSupported
public var localizedDescription: String {
return "This feature is available only for iOS 11 or later."
You can’t perform that action at this time.