yes
is a program that prints y
over and over, meant to be piped into the input of programs requiring confirmation.
Our task is to write a program in Common Lisp that prints YES
in a similar manner.
#!/bin/bash | |
# Script using ffmpeg to convert all the .mov files in the current | |
# directory to "Motion Jpeg".mov codec | |
# Remember to $chmod | |
for ff in *.mov; | |
do | |
filename=$(basename $ff) | |
extension=${filename##*.} |
<CsoundSynthesizer> | |
;<CsOptions> | |
;</CsOptions> | |
<CsInstruments> | |
sr = 44100 | |
ksmps = 1 | |
;nchnls = 2 | |
0dbfs = 1 | |
gir ftgen 1, 0, 8192, 10, 1 |
#!/usr/bin/ruby | |
# usage: set_permissions.rb [access_key_id] [secret_access_key] [bucket_name] | |
# ----------------------------------------------------------------------------- | |
# This script provides a means of updating all of the files in an S3 bucket to | |
# have the correct permissions. As this script is effectively throwaway it | |
# doesn't do much beyond making sure it runs at least once, however, is worth | |
# keeping around as a reference in the event the problem arises again. | |
# ----------------------------------------------------------------------------- | |
require 'rubygems' |
require 'nokogiri' | |
require 'open-uri' | |
site = 'http://reddit.com/r/showerthoughts/.xml' | |
doc = Nokogiri::HTML(open(site)) | |
filenames = [] | |
doc.css("title")[3].children.text.gsub(/"/, "").split(' ').each_with_index do |word, i| |
; printf(int) | |
; by Topher6345 | |
; Prints a decimal-formatted, positive 8-bit integer to stdout. | |
; for Simple 8-bit Assembler Simulator | |
; http://schweigi.github.io/assembler-simulator/index.html | |
JMP start | |
hello: DB 78 ; int *hello; The number we wish to print; |
; int mod(int a,int b) | |
; by Topher6345 | |
; Implements a integer modulo function | |
; for Simple 8-bit Assembler Simulator | |
; http://schweigi.github.io/assembler-simulator/index.html | |
JMP start | |
ARG1: DB 13 ; Variable |
; Swap Registers A & B with no tmp | |
JMP start | |
ARG1: DB 13 ; Variable | |
ARG2: DB 3 ; Variable | |
start: | |
MOV A, [ARG1] ; A = ARG1; | |
MOV B, [ARG2] ; B = ARG2; |
#!/usr/bin/env ruby | |
require 'html2markdown'; puts HTMLPage.new(:contents => ARGF.read).markdown |