Skip to content

Instantly share code, notes, and snippets.

Daniel Livingston daniellivingston

Block or report user

Report or block daniellivingston

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@daniellivingston
daniellivingston / JumpTest.swift
Created Apr 11, 2019
Basic example demonstrating complex jumping movements (Swift 4, SpriteKit)
View JumpTest.swift
//
// GameScene.swift
// JumpTest
//
// Created by Livingston on 4/6/19.
// Copyright © 2019 Livingston. All rights reserved.
//
import SpriteKit
import GameplayKit
@daniellivingston
daniellivingston / lagrit.vim
Created Nov 16, 2017
LaGriT Syntax file for ViM
View lagrit.vim
" Vim syntax file
" Language: LaGriT
" Maintainer: Daniel Livingston
" Latest Revision: 16 November 2017
" To install: copy to ~/.vim/syntax/lagrit.vim
" ---------------------------------------------------- "
" if exists("b:current_syntax")
" finish
" endif
@daniellivingston
daniellivingston / reset_macos_attributes.sh
Created Nov 14, 2017
Wipes extended macOS attributes
View reset_macos_attributes.sh
# Wipe all extended attributes that macOS sets
# Based on the GitHub Gist: kennwhite/reset_osx_attributes.sh
# Add to ~/.bash_profile
# Usage:
# Takes one argument as directory
# If no argument provided, acts on current working dir.
wipe_extended_attributes() {
export dir=`echo $1`
@daniellivingston
daniellivingston / lock.sh
Created Nov 14, 2017
Activate screensaver from macOS terminal
View lock.sh
# Activate screensaver from macOS terminal
# Add to ~/.bash_profile
lock() {
open -a /System/Library/Frameworks/Screensaver.framework/Versions/A/Resources/ScreenSaverEngine.app
}
You can’t perform that action at this time.