Standard escape codes are prefixed with Escape
:
- Ctrl-Key:
^[
- Octal:
\033
- Unicode:
\u001b
- Hexadecimal:
\x1B
- Decimal:
27
class Game | |
attr_accessor :_ | |
def default_ship x, y, heading | |
_.new(:ship) do |s| | |
s.x = x | |
s.y = y | |
s.dy = 0 | |
s.dx = 0 | |
s.heading = heading |
// Compile with: | |
// gcc -o click click.m -framework ApplicationServices -framework Foundation | |
// | |
// Usage: | |
// ./click -x pixels -y pixels | |
// At the given coordinates it will click and release. | |
// | |
// From http://hints.macworld.com/article.php?story=2008051406323031 | |
#import <Foundation/Foundation.h> | |
#import <ApplicationServices/ApplicationServices.h> |
using Microsoft.AspNetCore.Builder; | |
using Microsoft.AspNetCore.Hosting; | |
using Microsoft.AspNetCore.Http; | |
using Microsoft.Extensions.Logging; | |
namespace WebApplication1 | |
{ | |
public class Program | |
{ | |
public static void Main(string[] args) |
CFLAGS = -std=c99 -Wall -Wextra -O3 -g3 | |
lfsr: lfsr.c |
/* NOTICE: THIS WAS MADE BACK IN 2017, OF COURSE IT'S NOT GOING TO WORK WELL NOW THAT TWITTER'S FUCKED THINGS UP */ | |
@namespace url(http://www.w3.org/1999/xhtml); | |
@-moz-document domain("twitter.com") { | |
[data-component-context="suggest_recap"], | |
[data-component-context="suggest_who_to_follow"], | |
[data-component-context="suggest_activity"], | |
[data-component-context="suggest_activity_tweet"], | |
[data-component-context="suggest_recycled_tweet_inline"], | |
[data-component-context="suggest_recycled_tweet"]{ |
class Cosine | |
def initialize vecA, vecB | |
@vecA = vecA | |
@vecB = vecB | |
end | |
def calculate_similarity | |
return nil unless @vecA.is_a? Array | |
return nil unless @vecB.is_a? Array | |
return nil if @vecA.size != @vecB.size |
https://yourdomain.example.com/ { | |
log / /var/log/caddy/mastodon.log "{combined}" { | |
rotate_age 90 | |
} | |
root /home/mastodon/live/public | |
gzip | |
header / { | |
Strict-Transport-Security "max-age=31536000" | |
} |