Skip to content

Instantly share code, notes, and snippets.

View twof's full-sized avatar
💧

Alex Reilly twof

💧
View GitHub Profile
@mishagray
mishagray / DefaultingJSONDecoder.swift
Created November 13, 2017 16:44
defines DefaultingJSONDecoder and CodingKeyWithDefaults
//
// DefaultingDecoder.swift
//
// Created by Michael Gray on 10/12/17.
//
import Foundation
// swiftlint:disable force_cast file_length
@lattner
lattner / TaskConcurrencyManifesto.md
Last active April 25, 2024 18:22
Swift Concurrency Manifesto
@mikemcguire
mikemcguire / .gitignore
Last active February 21, 2017 20:04
Wordpress .gitignore for MVC framework
# WordPress #
############
patternlab-php-master/
wp-config-local.php
wp-content/uploads
wp-content/plugins/debug-log.php
wp-content/blogs.dir/
wp-config.php
wp-content/upgrade/
wp-content/backup-db/
package Cadastro;
import java.util.Scanner;
public class Produto {
private String id;
private String nome;
private String tipo;
private String marca;

Innovatives Wissensformat sucht Entwickler

Für einen großen öffentlich-rechtlichen Rundfunksender entwickeln wir ein innovatives Wissenschaftsformat: Wir verwandeln Sensordaten live in Text. Und zwar über 40 Tage. Wir lösen damit nicht nur die Erzählweise klassischer Medien auf. Es ist ein journalistisches Abenteuer.

Wir sind preisgekrönte Journalisten und begeisterte Open-Source-Entwickler. Um die Software bis zum produktiven Einsatz zu bringen, suchen wir für den Zeitraum März bis Oktober 2017 noch freelance Verstärkung für unser Entwickler-Team.

Warum solltest Du unbedingt mitmachen?

  • Wir entwickeln sowohl Software als auch Hardware
@c9iim
c9iim / AXUIElement_in_Swift_pert2.swift
Last active December 16, 2017 23:40
AXUIElement in Swift pert2
import Cocoa
extension NSWorkspace {
class func frontmostApp() -> NSRunningApplication? {
return self.sharedWorkspace().frontmostApplication
}
class func runningApp(bundleIdentifier:NSString) -> NSRunningApplication? {
let runningApplications = NSWorkspace.sharedWorkspace().runningApplications
return runningApplications.filter({$0.bundleIdentifier == bundleIdentifier}).first
}
@c9iim
c9iim / AXUIElement_in_Swift.swift
Last active May 9, 2023 07:45
AXUIElement in Swift
import Cocoa
protocol AXUIProtocol {
func AXUIWindowArray(processIdentifier pid:pid_t) -> [AXUIElement]
func AXUIWindowArray(bundleIdentifier bid:NSString) -> [AXUIElement]
}
extension AXUIProtocol {
func AXUIWindowArray(processIdentifier pid:pid_t) -> [AXUIElement] {
let windowList : UnsafeMutablePointer<AnyObject?> = UnsafeMutablePointer<AnyObject?>.alloc(1)