Skip to content

Instantly share code, notes, and snippets.

View a40yostudent's full-sized avatar
🤓
Learning computer science

A 40 years old student a40yostudent

🤓
Learning computer science
View GitHub Profile
final class Example {
func emptyTask() {
TODO
}
func slowTask() {
FIXME
print("This still executes")
}
@shaps80
shaps80 / 1. Xcode-Theme.dvtcolortheme
Last active February 28, 2017 07:40
My personal Xcode theme
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>DVTConsoleDebuggerInputTextColor</key>
<string>0.698053 0.73105 0.720167 1</string>
<key>DVTConsoleDebuggerInputTextFont</key>
<string>OperatorMono-Book - 13.0</string>
<key>DVTConsoleDebuggerOutputTextColor</key>
<string>0.847059 0.847059 0.376471 1</string>
// @discardableResult to be added
// @noescape needs to move to type annotation
// needs to add _ for item
public func with<T>(item: T, @noescape update: (inout T) throws -> Void) rethrows -> T {
var this = item; try update(&this); return this
}
import UIKit
import XCPlayground
class ViewController: UIViewController {
func action() { print("Bing!") }
override func viewDidLoad() {
super.viewDidLoad()
view.backgroundColor = .whiteColor()
@PurpleBooth
PurpleBooth / README-Template.md
Last active June 28, 2024 02:47
A template to make good README.md

Project Title

One Paragraph of project description goes here

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.

Prerequisites

/*
Erica Sadun, http://ericasadun.com
GameplayKit Available 10.11, iOS 9
*/
import Foundation
import GameplayKit // only available on OS X 10.11, iOS 9
@tamask
tamask / select_by_color.py
Created May 4, 2012 01:04
Select By Color (Blender)
import bpy
from mathutils import Color
bl_info = {
'name': 'Select By Color',
'author': 'Tamas Kemenczy',
'version': (0, 1),
'blender': (2, 6, 1),
'location': 'View3D > Specials > Select By Color',
'description': 'Select all faces with the same vertex color of the selected face',