This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# SVG Squash | |
# Alasdair Monk | |
require 'Nokogiri' | |
puts "Creating sprite..." | |
svgs = Dir["./**.svg"] | |
contents ="" | |
# Loop thru svgs in directory |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import "fmt" | |
func main() { | |
// Padding | |
sum := 1 | |
maxSize := 10 | |
for i := 0; i < maxSize; i++ { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8"?> | |
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:sparkle="http://www.andymatuschak.org/xml-namespaces/sparkle"> | |
<channel> | |
<title>My Sketch Library</title> | |
<description>My Sketch Library</description> | |
<image> | |
<url></url> | |
<title>My Sketch Library</title> | |
</image> | |
<generator>Sketch</generator> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"remapKeys": { | |
"inProcess": [ | |
{ | |
"originalKeys": "20", | |
"newRemapKeys": "27" | |
} | |
] | |
}, | |
"remapShortcuts": { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// SnappyWindow.swift | |
// A NSWindow that snaps to corners | |
// | |
// Created by Alasdair Monk on 03/02/2021. | |
// | |
import Foundation | |
import Cocoa |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// Notify.swift | |
// | |
import Foundation | |
class Notify { | |
static let shared = Notify() | |
func send(event: NSNotification.Name) { |
OlderNewer