Skip to content

Instantly share code, notes, and snippets.

View Lukaz32's full-sized avatar
🇦🇹

Lucas Pereira Lukaz32

🇦🇹
  • Wien, Österreich
View GitHub Profile
@zdk
zdk / extract_youtube_id.mm
Created January 8, 2013 06:38
A stupid Regex to extract Youtube id from the given list of youtube URLs in Objective-C
//
// extract_youtube_id.m
// TestRegex
//
// Created by zdk on 1/8/2013 BE.
// Copyright (c) 2013 zdk. All rights reserved.
//
#import <Foundation/Foundation.h>
@BashedCrab
BashedCrab / JumpyOctopus.py
Created February 12, 2014 03:25
JumpyOctopus
from scene import *
from PIL import Image
import sound
import random
GAME_READY = 0
GAME_PLAY = 1
GAME_DYING = 2
GAME_DEAD = 3
@imkevinxu
imkevinxu / Device.swift
Last active March 4, 2023 16:09
iOS device checks for OS version and screen size in Swift
//
// Device.swift
// imHome
//
// Created by Kevin Xu on 2/9/15. Updated on 6/20/15.
// Copyright (c) 2015 Alpha Labs, Inc. All rights reserved.
//
import Foundation
@txaiwieser
txaiwieser / UIBezierPath+Polygons.swift
Created May 11, 2015 19:20
UIBezierPath+Polygons.swift - UIBezierPath Swift extension for easy creation of polygon paths!
//
// UIBezierPath+Polygons.swift
//
//
// Created by Txai Wieser on 11/05/15.
// Copyright (c) 2015 TDW. All rights reserved.
// Based on: https://github.com/ZevEisenberg/ZEPolygon, thanks man!
import UIKit
@fe9lix
fe9lix / remove_swift_headers.sh
Created February 16, 2016 19:08
Xcode: Remove header comments in Swift files
find . -type f -name "*.swift" -not -path "./Pods/*" -exec sed -i '' -e '1,/^import/{/^\/\/.*/d;}' -e '/./,$!d' {} \;
@cravoley
cravoley / remote-workplaces-porto-alegre.md
Last active May 9, 2018 16:59
Locais para trabalho remoto em Porto Alegre

LOCAIS PARA TRABALHO REMOTO EM PORTO ALEGRE

BADEN CAFÉS ESPECIAIS

Endereço: Av. Jerônimo de Ornelas, 431, Santana. Tel. (51) 3209-7427

Horário: seg-sex 11h30 20h30 sáb 14h—20h

Infra: Tomadas (três pinos, modelo novo)

@steipete
steipete / ios-xcode-device-support.sh
Last active July 25, 2024 05:02
Using iOS 15 devices with Xcode 12.5 (instead of Xcode 13)
# The trick is to link the DeviceSupport folder from the beta to the stable version.
# sudo needed if you run the Mac App Store version. Always download the dmg instead... you'll thank me later :)
# Support iOS 15 devices (Xcode 13.0) with Xcode 12.5:
sudo ln -s /Applications/Xcode-beta.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport/15.0 /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport
# Then restart Xcode and reconnect your devices. You will need to do that for every beta of future iOS versions
# (A similar approach works for older versions too, just change the version number after DeviceSupport)
@dduan
dduan / XCTest+Eventually.swift
Last active January 11, 2023 00:26
A simple "eventually" method to aide asynchronous testing with XCTest
import XCTest
extension XCTestCase {
/// Simple helper for asynchronous testing.
/// Usage in XCTestCase method:
/// func testSomething() {
/// doAsyncThings()
/// eventually {
/// /* XCTAssert goes here... */
@arturgrigor
arturgrigor / Podfile
Created September 10, 2018 09:55
Sample Podfile for silencing warnings for CocoaPods dependencies
# Uncomment the next line to define a global platform for your project
# platform :ios, '9.0'
target '%TargetName%' do
# Comment the next line if you're not using Swift and don't want to use dynamic frameworks
use_frameworks!
# Pods for %TargetName%
# pod 'FBSDKCoreKit'
end
import SwiftUI
import os
@main
struct ios14DemoApp: App {
@StateObject var notificationCenter = NotificationCenter()
@UIApplicationDelegateAdaptor private var appDelegate: AppDelegate
var body: some Scene {
WindowGroup {