Про формат мероприятия. (5мин)
- Я назвал это воркшопом потому, что это не лекция i.e. будем много общаться с аудиторией. Тем не менее у этого воркшопа есть некий план.
| import logging | |
| from world import World | |
| from heapq import heappush, heappop | |
| from test_emulators import run_interactively | |
| class LambdaFields(object): | |
| # fields: [(int LambdaCoordinate, [int] LambdaField)] | |
| # list of individual fields produced by each lambda | |
| # LambdaCoordinate is the 1d coordinate of lambda in the world | |
| # LambdaField is the list of effects that the field has on each of the cells |
| #sr-header-area div.srdrop > * { display: none !important } | |
| #sr-header-area div.sr-list > * { display: none !important } | |
| #sr-header-area div.sr-list > .sr-bar:nth-of-type(2) { padding-left: 0.5em !important; display: block !important; text-transform:lowercase; font-size: 1.2em; } | |
| #sr-header-area #sr-more-link { display: none !important } |
| #!/bin/bash | |
| my_lsr () { | |
| d=$1; | |
| for x in "$d"/* "$d"/.[!.]* "$d"/..?*; do | |
| if test -f "$x"; then | |
| # handler for an ordinary file | |
| eval "$2" "$x" | |
| elif test -h "$x"; then | |
| # handler for a symlink | |
| eval "$2" "$x" |
| for x in ./* ; do cd $x; git branch -r | sed "s,^,($x) → ,g"; cd ..; done |
| #!/usr/bin/python | |
| ##################### | |
| # TelnetTerminal.py # | |
| #===================# | |
| # By Kerberos # | |
| ##################### | |
| import os, sys, telnetlib, getopt, socket | |
| from telnetlib import IAC, NOP | |
| def Init(): |
| # ~/.mpd/config | |
| # MPD configuration that enables you to run the server from the userspace | |
| # And to stream music over HTTP so that you could listen it in a distributed fashion (from the office/school) | |
| # Uncomment the commented lines to stream music to the local audio output | |
| # Note that you can have more than one audio outputs enabled! | |
| # Where is my music? | |
| music_directory "/home/mpdaemon/Music" | |
| playlist_directory "/home/mpdaemon/.mpd/playlists" |
| sleep `expr $SLEEP`h; for j in {1..3}; do for i in {1..70}; do sleep 1 && amixer set Master $i%; done; done |