Skip to content

Instantly share code, notes, and snippets.

View alexito4's full-sized avatar

Alejandro Martínez alexito4

View GitHub Profile
@alexito4
alexito4 / example_call.txt
Created April 29, 2013 16:03
Minecraft & MultiMC. List all the mods in a MultiMC instance.
ruby mods.rb /Applications/Minecraft/MultiMC.app/Contents/Resources/instances/CustomDirewolf20/ > mods.txt
@alexito4
alexito4 / Android Pull Database
Last active December 19, 2015 08:49
Shell script for pulling the database from an android device.
#!/bin/sh
# Params
while echo $1 | grep ^- > /dev/null; do
eval $( echo $1 | sed 's/-//g' | tr -d '\012')=$2
shift
shift
done
adbdefault="/Applications/adt-bundle-mac-x86_64-20130522/sdk/platform-tools/adb"
@alexito4
alexito4 / gist:5950169
Created July 8, 2013 16:09
Basic REST API with NodeJS and Express
var express = require('express');
var app = express();
app.use(express.bodyParser());
var users = [
{
"id": 0,
"isActive": false,
"balance": "$1,274.00",
@alexito4
alexito4 / keybase.md
Created February 11, 2016 11:06
keybase.md

Keybase proof

I hereby claim:

  • I am alexito4 on github.
  • I am alejandromp (https://keybase.io/alejandromp) on keybase.
  • I have a public key whose fingerprint is F281 C10D C3E7 50B6 E256 ABCC DB9D C4B2 043A 15C9

To claim this, I am signing this object:

@alexito4
alexito4 / sessionslist.txt
Created June 6, 2018 18:39
WWDC 18 List of Sessions
What's New in Swift
Creating Apps for a Global Audience
Introducing Podcast Analytics
What's New in Cocoa Touch
Using Accelerate and simd
Live Screen Broadcast with ReplayKit
I Have This Idea For An App...
Automatic Strong Passwords and Security Code AutoFill
Measuring and Optimizing HLS Performance
What’s New in ARKit 2
@alexito4
alexito4 / playground
Created August 26, 2014 18:55
Swift extensions and inheritance
import UIKit
protocol Thing {
func name() -> String
}
protocol God {
func talk() -> String
}
@alexito4
alexito4 / lists.swift
Last active May 8, 2019 14:35
Swift script to convert Reminders export files (.ics) to lists.
#!/usr/bin/swift sh
import Foundation
guard let path = CommandLine.arguments.dropFirst().first else { exit(1) }
print(path)
let content = try! String(contentsOfFile: path)
let lines = content
@alexito4
alexito4 / enums.playground
Last active August 12, 2019 06:32
Swift enums and UISegmentedControl
import UIKit
enum Size: Int, CustomStringConvertible {
case S = 0
case M
case L
case XL
static func allValues() -> [String] {
@alexito4
alexito4 / gist:42488bfcf5385467c758633e389eb62f
Created February 16, 2020 08:43
SwiftUI Mac broken foreach ?
import SwiftUI
import Combine
struct Object: Identifiable {
var id: String { name }
let name: String
}
final class Data: ObservableObject {

Keybase proof

I hereby claim:

  • I am alexito4 on github.
  • I am alejandromp (https://keybase.io/alejandromp) on keybase.
  • I have a public key ASBeRlhREhfheuUvVgFu8p0uvh_gwMzlE74WIJ7jk_wRtwo

To claim this, I am signing this object: