Skip to content

Instantly share code, notes, and snippets.

View andru255's full-sized avatar
🇵🇪
:)

Andrés Muñoz andru255

🇵🇪
:)
View GitHub Profile
@SunXiaoShan
SunXiaoShan / OCLintTool.sh
Last active October 16, 2017 23:15
OCLint
# 安裝 Homebrew
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
# 安装 OCLint
brew tap oclint/formulae
brew install oclint
# 安裝 xcpretty
gem install xcpretty
@lattner
lattner / async_swift_proposal.md
Last active April 21, 2024 09:43 — forked from oleganza/async_swift_proposal.md
Concrete proposal for async semantics in Swift

Async/Await for Swift

Introduction

Modern Cocoa development involves a lot of asynchronous programming using closures and completion handlers, but these APIs are hard to use. This gets particularly problematic when many asynchronous operations are used, error handling is required, or control flow between asynchronous calls gets complicated. This proposal describes a language extension to make this a lot more natural and less error prone.

This paper introduces a first class Coroutine model to Swift. Functions can opt into to being async, allowing the programmer to compose complex logic involving asynchronous operations, leaving the compiler in charge of producing the necessary closures and state machines to implement that logic.

@inamiy
inamiy / SwiftElmFrameworkList.md
Last active March 11, 2024 10:20
React & Elm inspired frameworks in Swift
@vietlq
vietlq / README.md
Last active March 10, 2022 05:05
Hugo Partial Template to render Open Graph & Twitter Card meta tags
@Azoy
Azoy / install-swift-ubuntu.md
Last active December 9, 2022 03:42
Guide on how to install Swift on Ubuntu

Install Swift on Ubuntu

Requirements

  1. Ubuntu 14.04, 16.04, or 16.10

Step 1 - Dependencies

  1. Open up terminal
  2. Install core deps: sudo apt-get install clang libicu-dev git

Step 1.1 - Ubuntu 14.04 Clang

@peatiscoding
peatiscoding / Basic.swift
Created March 17, 2017 03:11
A setTimeout script for Swift3.0
/**
setTimeout()
Shorthand method for create a delayed block to be execute on started Thread.
This method returns ``Timer`` instance, so that user may execute the block
within immediately or keep the reference for further cancelation by calling
``Timer.invalidate()``
import Foundation
import FirebaseRemoteConfig
final class Config {
/// The shared instance of config to use
static let shared: Config = Config()
/// The maximum number of items that are allowed in this mystery app
internal let maxItemCount: Int
@dayitv89
dayitv89 / MockAPITest.m
Last active October 4, 2017 17:24
Objective-C iOS API Mocking using XCTest (Xcode 8.1) & OHHTTPStub v5.2.3
//
// MockAPITest.m
// iOS-API-Mock-Test
//
// Created by gauravds on 28/12/16.
// Copyright © 2016 iOS Dev Group. All rights reserved.
//
#import "ModelTestHelper.h"
@jaytaph
jaytaph / roadrace.py
Created December 10, 2016 15:22
Pygame RoadRace game
import math
import pygame
import numpy as np
class Car(pygame.sprite.Sprite):
def __init__(self, surface):
self.bounded_rect = surface.get_rect()
super(Car, self).__init__()
http://slides.com/agar3s/que-debes-saber-para-hacer-un-juego-con-javascript#/
capacidades canvas
http://codepen.io/agares/full/pJpoya/
capacidades webgl
http://webglsamples.org/dynamic-cubemap/dynamic-cubemap.html
capacidades dispositivos de entrada
http://codepen.io/agares/full/NPdKOB/