This file contains hidden or 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
| CREATE TABLE users (id serial PRIMARY KEY NOT NULL, username text NOT NULL); | |
| INSERT INTO users (username) VALUES ('admin'); | |
| INSERT INTO users (username) VALUES ('pat'); | |
| CREATE RULE no_delete_admin AS ON DELETE TO users WHERE username='admin' DO INSTEAD NOTHING; | |
| SELECT * FROM users; | |
| DELETE FROM users; | |
| SELECT * FROM users; |
This file contains hidden or 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
| PORTNAME= disport | |
| PORTVERSION= 0.1.1 | |
| CATEGORIES= ports-mgmt | |
| MAINTAINER= [email protected] | |
| COMMENT= no comment | |
| NO_CHECKSUM= yes | |
| NO_BUILD= yes |
This file contains hidden or 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
| host.hostname = "pat-$name"; | |
| vnet; | |
| mount.devfs; | |
| exec.clean; | |
| exec.start = "sh /etc/rc"; | |
| exec.stop = "sh /etc/rc.shutdown"; | |
| path = "/jail/$name"; | |
| devfs_ruleset = 6; | |
| vnet.interface = "epair${epair}b"; | |
| exec.prestart = "ifconfig epair${epair} create up"; |
These are not complete files.
These are XML chunks that you need to incorporate into the respective XML files under /Applications/Dorico 3.5/Contents (right-click the app and choose "show package contents").
They provide Sketch Treble, Sketch Alto, and Sketch Bass instruments. Each instrument is a single staff played with a piano sound, and can be condensed.
Additionally, edit instrumentFamiliesDefinitions.xml and add instrument.keyboard.piano.alias.sketchtreble, instrument.keyboard.piano.alias.sketchalto, instrument.keyboard.piano.alias.sketchbass to the `` list for instrument family.keyboards
This file contains hidden or 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
| #!/usr/bin/env ruby | |
| largefiles = `git annex config --get annex.largefiles` | |
| untracked_files = `git ls-files --others --exclude-standard` | |
| annex_files = [] | |
| git_files = [] | |
| untracked_files.split("\n").each do |file| | |
| `git annex matchexpression "#{largefiles}" --largefiles --file "#{file}"` |
This file contains hidden or 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
| { | |
| "version": "2.9.1", | |
| "id": "8ZvXxRON", | |
| "controlDeviceId": "6", | |
| "feedbackDeviceId": "6", | |
| "defaultGroup": {}, | |
| "groups": [ | |
| { | |
| "id": "805d20ec-3b00-48ca-bef3-8384f997bcad", | |
| "name": "Drums" |
This file contains hidden or 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
| 0 |
This file contains hidden or 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
| class Object | |
| def or_else | |
| self | |
| end | |
| end | |
| class NilClass | |
| def or_else | |
| yield | |
| end |
This file contains hidden or 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
| import { useState, useCallback } from 'react'; | |
| export default function useToggle(initialState) { | |
| const [isOn, setIsOn] = useState(initialState); | |
| const turnOn = useCallback(() => setIsOn(true), [setIsOn]); | |
| const turnOff = useCallback(() => setIsOn(false), [setIsOn]); | |
| const toggle = useCallback(() => setIsOn(prevState => !prevState), [setIsOn]); | |
| return { isOn, turnOn, turnOff, toggle, setIsOn }; | |
| } |