This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* ALSA SoC TLV320AIC23 codec driver (SPI version) | |
* | |
* Author: Brandon Hamilton <[email protected]> | |
* | |
* Based on sound/soc/codecs/tlv320aic23.c by Arun KS | |
* | |
* This program is free software; you can redistribute it and/or modify | |
* it under the terms of the GNU General Public License version 2 as | |
* published by the Free Software Foundation. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
; dance in Linux Kernel style | |
(setq c-default-style "linux") | |
; get off scroll bar | |
(if (fboundp 'scroll-bar-mode) (scroll-bar-mode -1)) | |
; get off tool bar | |
(if (fboundp 'tool-bar-mode) (tool-bar-mode -1)) | |
; get off menu bar | |
(if (fboundp 'menu-bar-mode) (menu-bar-mode -1)) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
XTerm*faceName: Bitstream Vera Serif Mono | |
XTerm*faceSize: 10 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
set number | |
set relativenumber | |
set expandtab | |
set tabstop=4 | |
set shiftwidth=4 | |
syntax on | |
set laststatus=2 | |
set hlsearch | |
" use https://github.com/junegunn/vim-plug for plugin management |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
set noexpandtab " use tabs, not spaces | |
set tabstop=8 " tabstops of 8 | |
set shiftwidth=8 " indents of 8 | |
set textwidth=78 " screen in 80 columns wide, wrap at 78 | |
set autoindent smartindent " turn on auto/smart indenting | |
set smarttab " make <tab> and <backspace> smarter | |
set backspace=eol,start,indent " allow backspacing over indent, eol, & start | |
filetype plugin indent on |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /bin/sh | |
(sleep 30m && kill `pidof mplayer`)& | |
mplayer -dumpstream -dumpfile `date +'%Y-%h-%d_%H-%M.mp3'` http://listen.hardbase.fm/tunein-mp3-pls |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /usr/local/bin/ruby | |
Dir.foreach("./") do |filename| | |
if /^[^.]*\.mp3$/i =~ filename | |
cmd = "mid3iconv -e \"Windows-1251\" \"%s\"" % filename | |
puts "next cmd: " + cmd | |
break if not system(cmd) | |
end | |
end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
output_dir = "output" | |
if File.exists? output_dir | |
id = 1 | |
while File.exists?(output_dir + id.to_s) && id < 10 | |
id += 1 | |
end | |
if id >= 10 | |
puts "error: can't figure out new output directory name" | |
exit 0 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<snippet> | |
<content><![CDATA[ | |
#ifndef $1 | |
#define $1 | |
$2 | |
#endif /* $1 */ | |
]]></content> | |
<tabTrigger>ifndef</tabTrigger> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## non-std: 720x288p@50Hz | |
- clock: 13.5MHz | |
- horizontal: 720-4-136-4 or 720-724-860-864 | |
- vertical: 288-4-16-4 or 288-292-308-312 | |
- DTD: `46 05 D0 90 20 20 18 10 04 88 40 01 00 00 00 00 00 18` | |
## std: 720x576p@50Hz | |
- clock: 27MHz | |
- horizontal: 720-732-796-864 |
OlderNewer