This is a collection of lists that I have created for use in various UI design projects. They are intended to be added as custom types in text section of the Craft plugin from InVision. Although these were made as part of my Sketch design workflow, they are simple text lists, so I am sure they can be used for other purposes as well. Contributions welcome!
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
| #!/bin/sh | |
| echo "Status Script Running"; | |
| DATE=$(date); | |
| WHO=$(who); | |
| UPTIME=$(uptime); | |
| #PSTREE=$(pstree) | |
| RESULT=$DATE"\n"$WHO"\n"$UPTIME |
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
| 99.downto(1) do |bottles| | |
| puts "#{bottles} bottle#{"s" if bottles != 1} of beer on the wall.", | |
| "#{bottles} bottle#{"s" if bottles != 1} of beer.", | |
| "Take one down, pass it around.", | |
| "#{bottles - 1} bottle#{"s" if bottles - 1 != 1} of beer on the wall.\n\n" | |
| 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
| /////////////////////////////////// | |
| // 5. More about Objects; Constructors and Prototypes | |
| // Objects can contain functions. | |
| var myObj = { | |
| myFunc: function(){ | |
| return "Hello world!"; | |
| } | |
| }; | |
| myObj.myFunc(); // = "Hello world!" |
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
| 518 mkdir git-fu | |
| 519 cd git-fu/ | |
| 520 ll | |
| 521 clear | |
| 522 git init | |
| 523 ll | |
| 524 git tag genesis | |
| 525 ll | |
| 526 git log | |
| 527 git add |
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
| // ==UserScript== | |
| // @name pinboard-dark-mode | |
| // @namespace http://tampermonkey.net/ | |
| // @version 0.1 | |
| // @description try to take over the world! | |
| // @author You | |
| // @include http://pinboard.in/* | |
| // @include https://pinboard.in/* | |
| // @include http://*.pinboard.in/* | |
| // @include https://*.pinboard.in/* |
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
| # a function which finds the most starred repo of a user on GitHub | |
| # Usage: | |
| # most_starred_repo.rb <github_username> | |
| # Example: | |
| # most_starred_repo.rb airbr | |
| require 'net/http' | |
| require 'json' |
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
| function deepEqual(a, b) { | |
| if (a === b) return true; | |
| if (a == null || typeof a != "object" || | |
| b == null || typeof b != "object") return false; | |
| let keysA = Object.keys(a), keysB = Object.keys(b); | |
| if (keysA.length != keysB.length) return false; |
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
| #!/bin/bash | |
| if [ -z "$1" ]; then | |
| echo "waiting for the following arguments: username + max-page-number" | |
| exit 1 | |
| else | |
| name=$1 | |
| fi | |
| if [ -z "$2" ]; then |