Proposal for Icecast
Indent with (4) spaces, no tabs.
A Line Should Not Exceed 80 Characters.
All if
, while
, for
and do
statements should either have braces or be on a single line.
Do not put parens next to keywords. Put a space between.
abbr[title], | |
acronym[title], | |
dfn[title] { | |
border-bottom: 1px dotted #000; | |
} | |
@supports (text-decoration: dotted underline) { | |
abbr[title], | |
acronym[title], | |
dfn[title] { | |
text-decoration: dotted underline; |
#!/bin/bash | |
ROOT=output | |
CC=x86_64-linux-musl-g++ | |
CFLAGS=" | |
-nostdinc | |
-isystem $ROOT/x86_64-linux-musl/include/c++/7.2.0 | |
-isystem $ROOT/x86_64-linux-musl/include/c++/7.2.0/x86_64-linux-musl | |
-isystem $ROOT/x86_64-linux-musl/include/c++/7.2.0/backward | |
-isystem $ROOT/x86_64-linux-musl/include/ |
- (void)moveToURL:(NSURL *)url completionHandler:(void (^ __nullable)(NSError * __nullable))completionHandler | |
{ | |
NSError *error = nil; | |
NSURL *adjustedURL = nil; | |
if (![[url pathExtension] isEqualToString:@"testextension"]) { | |
adjustedURL = [url URLByAppendingPathExtension:@"testextension"]; | |
} |
// call like "swift remote.swift" | |
import MediaPlayer | |
let centre = MPRemoteCommandCenter.shared() | |
let handler: (String) -> ((MPRemoteCommandEvent) -> (MPRemoteCommandHandlerStatus)) = { (name) in | |
return { (event) -> MPRemoteCommandHandlerStatus in | |
print("\(name)") | |
return .success | |
} |
#!/bin/sh | |
# dependencies | |
echo "Installing dependencies via Homebrew (http://brew.sh)" | |
ruby -e "$(curl -fsSL https://raw.github.com/Homebrew/homebrew/go/install)" | |
brew update | |
brew install gcc48 |
#!/bin/bash | |
MINIDUMP_PATH="${1}" | |
MINIDUMP_STACKWALK=$(which minidump_stackwalk) | |
if [ -z "$MINIDUMP_STACKWALK" ]; then | |
if [ -f "$HOME/.mozbuild/minidump_stackwalk/minidump_stackwalk" ]; then | |
MINIDUMP_STACKWALK="$HOME/.mozbuild/minidump_stackwalk/minidump_stackwalk" | |
else | |
printf "You need the minidump_stackwalk executable in your PATH or under ~/.mozbuild in order to run this script\n" | |
exit 1 |
import UIKit | |
extension NSDateComponents { | |
subscript(unit: String) -> Int { | |
get { | |
switch unit{ | |
case "month": | |
return self.month | |
case "day": | |
return self.day |
Pull the VideoLAN Docker container and run it in interactive mode with bash:
(The -v ~/docker:/root/shared
maps /root/shared
in the container to ~/docker
on your machine to easily obtain the build results, so make sure ~/docker
exists.)
docker pull registry.videolan.org:5000/vlc-debian-win64
docker run -v ~/docker:/root/shared -it registry.videolan.org:5000/vlc-debian-win64 /bin/bash
# runs under Python 2 (yes, I know...) | |
# required modules: pip install unicorn pefile | |
# this code is made available under the MIT license, as follows: | |
# Copyright (c) 2018 Ash Wolf | |
# Permission is hereby granted, free of charge, to any person obtaining a copy | |
# of this software and associated documentation files (the "Software"), to deal | |
# in the Software without restriction, including without limitation the rights | |
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell |