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) { |
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
{ | |
"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
<?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
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
# 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
# Rename craft public/ to html/ | |
# Add new db file locally | |
return array( | |
'*' => array( | |
'server' => 'localhost', | |
'database' => 'crafttest', | |
'tablePrefix' => 'craft' | |
), |
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
$ npm -g install localtunnel | |
/usr/local/bin/lt -> /usr/local/lib/node_modules/localtunnel/bin/client | |
[email protected] /usr/local/lib/node_modules/localtunnel | |
├── [email protected] | |
├── [email protected] | |
├── [email protected] | |
└── [email protected] ([email protected], [email protected], [email protected], [email protected]) | |
$ lt --port 8080 | |
your url is: https://htkzpnysxf.localtunnel.me |
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
node -v |
NewerOlder