Get it from the App Store.
In XCode's Preferences > Downloads you can install command line tools.
| #include <stdio.h> | |
| /* | |
| * Calculates what Ada Lovelace labeled "B7", which today we would call the 8th | |
| * Bernoulli number. | |
| */ | |
| int main(int argc, char* argv[]) | |
| { | |
| // ------------------------------------------------------------------------ | |
| // Data |
| ;; Prevent the cursor from blinking | |
| (blink-cursor-mode 0) | |
| ;; Don't use messages that you don't read | |
| (setq initial-scratch-message "") | |
| (setq inhibit-startup-message t) | |
| ;; Don't let Emacs hurt your ears | |
| (setq visible-bell t) | |
| ;; You need to set `inhibit-startup-echo-area-message' from the | |
| ;; customization interface: |
| @implementation UITextView (RSExtras) | |
| static BOOL stringCharacterIsAllowedAsPartOfLink(NSString *s) { | |
| /*[s length] is assumed to be 0 or 1. s may be nil. | |
| Totally not a strict check.*/ | |
| if (s == nil || [s length] < 1) | |
| return NO; |
| #!/bin/sh | |
| ### | |
| # SOME COMMANDS WILL NOT WORK ON macOS (Sierra or newer) | |
| # For Sierra or newer, see https://github.com/mathiasbynens/dotfiles/blob/master/.macos | |
| ### | |
| # Alot of these configs have been taken from the various places | |
| # on the web, most from here | |
| # https://github.com/mathiasbynens/dotfiles/blob/5b3c8418ed42d93af2e647dc9d122f25cc034871/.osx |
| #!/bin/bash | |
| scriptname="script_template" | |
| ### functions | |
| function usage | |
| { | |
| echo -e "usage: $scriptname MANDATORY [OPTION]\n" | |
| echo -e "MANDATORY mandatory parameter:" | |
| echo -e " -m, --mandatory VAL The desc of the mandatory parameter\n" |
| %===================================================================== | |
| % jhwhw.cls | |
| % Provide jhwhw.cls class | |
| %===================================================================== | |
| %===================================================================== | |
| % Identification | |
| %===================================================================== | |
| \NeedsTeXFormat{LaTeX2e} | |
| \ProvidesClass{jhwhw}[2009/02/11 Justin Wilson's Homework Class] |
| ### | |
| ### Usage: blah [<options>] | |
| ### | |
| ### Description of the script | |
| ### | |
| ### Options: | |
| ### -f --flag | |
| ### Description of the flag | |
| ### -o --option <arg> | |
| ### Description of the option and argument |