Standard escape codes are prefixed with Escape:
- Ctrl-Key:
^[ - Octal:
\033 - Unicode:
\u001b - Hexadecimal:
\x1B - Decimal:
27
| #!/bin/sh | |
| RESET=`tput sgr0` | |
| RED=`tput setaf 1` | |
| GREEN=`tput setaf 2` | |
| if [ "$1" ]; then | |
| if ! [ -e "$1" ] | |
| then |
| # -*- coding: utf-8 -*- | |
| from rasa_nlu.components import Component | |
| """ | |
| About | |
| ----- | |
| The Spacy tokenizer uses lowercase by default, so training an NLU model using |
| from time import time | |
| import sys | |
| import boto3 | |
| client = boto3.client('cloudfront') | |
| # Uncomment this to pass a URL to the script | |
| #def get_id(url): | |
| # print("get_id args: {0}".format(url)) | |
| # # url: asdf.cloudfront.net | |
| # # return: E2134123ASDF |
| function hass-upgrade { | |
| echo "Stopping homeassistant" | |
| sudo systemctl stop home-assistant@homeassistant.service | |
| sudo -u homeassistant -H /bin/bash <<EOF | |
| echo "Activating virtualenv" | |
| source /srv/homeassistant/bin/activate |
| %.hex: %.asm | |
| avra -fI $< | |
| rm *.eep.hex *.obj *.cof | |
| all: $(patsubst %.asm,%.hex,$(wildcard *.asm)) | |
| upload: ${program}.hex | |
| avrdude -c arduino -p m328p -P /dev/arduino-uno -b 115200 -U flash:w:$< | |
| monitor: |
| 8 REM MINNESOTA EDUCATIONAL COMPUTING CONSORTIUM STAFF | |
| 9 REM PROGRAMMING REVISIONS BY DON RAWITSCH - 1975 | |
| 11 REM CURRENT VERSION - 3/27/75 | |
| 15 REM **FOR THE MEANING OF THE VARIABLES USED, LIST LINES 4900-4960** | |
| 25 PRINT "DO YOU NEED INSTRUCTIONS (YES/NO)"; | |
| 30 DIM C$[5] | |
| 35 INPUT C$ | |
| 40 IF C$="NO" THEN 400 | |
| 45 PRINT LIN(2) | |
| 59 REM ***INSTRUCTIONS*** |
| #!/bin/bash | |
| LDAP_SERVER=example.com:636 | |
| ALIAS=LDAP_SERVER | |
| KEYSTORE=/usr/lib/jvm/java-1.6.0-openjdk-amd64/jre/lib/security/cacerts | |
| PASSWD=changeit | |
| # grep the certificate | |
| echo -n | openssl s_client -connect $LDAP_SERVER | sed -ne '/-BEGIN CERTIFICATE-/,/-END CERTIFICATE-/p' > ldaps.crt |
| ; | |
| ; hello.asm | |
| ; | |
| ; A "Hello, World!" which illustrates an Atari 2600 programming | |
| ; introduction talk (slides at http://slideshare.net/chesterbr). | |
| ; | |
| ; This is free software (see license below). Build it with DASM | |
| ; (http://dasm-dillon.sourceforge.net/), by running: | |
| ; | |
| ; dasm hello.asm -ohello.bin -f3 |
| // Takes a credit card string value and returns true on valid number | |
| function valid_credit_card(value) { | |
| // Accept only digits, dashes or spaces | |
| if (/[^0-9-\s]+/.test(value)) return false; | |
| // The Luhn Algorithm. It's so pretty. | |
| let nCheck = 0, bEven = false; | |
| value = value.replace(/\D/g, ""); | |
| for (var n = value.length - 1; n >= 0; n--) { |