Fixes, mainly.
This commit is contained in:
		
							parent
							
								
									094dbbec6b
								
							
						
					
					
						commit
						912602822e
					
				| @ -22,7 +22,7 @@ get_window_size = function() { | |||||||
| }; | }; | ||||||
| 
 | 
 | ||||||
| is_screen_media = function() { | is_screen_media = function() { | ||||||
|     return (document.getElementsByTagName('link')[0].getAttribute('media').indexOf( |     return (document.getElementsByTagName('link')[1].getAttribute('media').indexOf( | ||||||
|         'screen') != -1 || (document.styleSheets && |         'screen') != -1 || (document.styleSheets && | ||||||
|         (document.styleSheets[0].media.mediaText.indexOf( |         (document.styleSheets[0].media.mediaText.indexOf( | ||||||
|             'screen') != -1 || document.styleSheets[0].media.indexOf( |             'screen') != -1 || document.styleSheets[0].media.indexOf( | ||||||
|  | |||||||
| @ -328,6 +328,10 @@ thead, tfoot { | |||||||
|     margin: 10px auto 0 auto; |     margin: 10px auto 0 auto; | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
|  | caption { | ||||||
|  |     caption-side: bottom; | ||||||
|  | } | ||||||
|  | 
 | ||||||
| 
 | 
 | ||||||
| /* Formatting-related classes */ | /* Formatting-related classes */ | ||||||
| 
 | 
 | ||||||
|  | |||||||
| @ -5,7 +5,7 @@ url http://metanohi.name/ | |||||||
| description 'This feed contains the newest pages on metanohi' | description 'This feed contains the newest pages on metanohi' | ||||||
| author Niels\ Serup | author Niels\ Serup | ||||||
| email ns@metanohi.org | email ns@metanohi.org | ||||||
| aboutauthorurl http://metanohi.name/about/niels/ | aboutauthorurl http://metanohi.name/about/niels | ||||||
| feeditems 40 | feeditems 40 | ||||||
| 
 | 
 | ||||||
| template template.html | template template.html | ||||||
| @ -15,6 +15,10 @@ convert prestatic/*.{css,js} static/ | |||||||
| convert prestatic/template.html . | convert prestatic/template.html . | ||||||
| 
 | 
 | ||||||
| # Redirects (in site/) | # Redirects (in site/) | ||||||
|  | ## temp | ||||||
|  | redirect projects/{showandkill,sak} https://gitorious.org/nqpz-config/nqpz-config/blobs/raw/master/home/.emacs.d/site-lisp/showandkill.el | ||||||
|  | 
 | ||||||
|  | ## old | ||||||
| redirect mege projects/mege/ | redirect mege projects/mege/ | ||||||
| redirect aboutme about/niels | redirect aboutme about/niels | ||||||
| redirect about/img-licenses about/media-licenses | redirect about/img-licenses about/media-licenses | ||||||
|  | |||||||
| @ -9,4 +9,4 @@ cd ~/www/meta/nohi | |||||||
| 
 | 
 | ||||||
| git pull | git pull | ||||||
| git feed | git feed | ||||||
| git restart | mege restart | ||||||
|  | |||||||
							
								
								
									
										
											BIN
										
									
								
								site/projects/img/mege.png
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										
											BIN
										
									
								
								site/projects/img/mege.png
									
									
									
									
									
										Normal file
									
								
							
										
											Binary file not shown.
										
									
								
							| After Width: | Height: | Size: 17 KiB | 
| @ -13,7 +13,8 @@ These are my projects, new and old. | |||||||
| #++exec | #++exec | ||||||
| #+BEGIN_SRC python3 | #+BEGIN_SRC python3 | ||||||
|   top_projs = ( |   top_projs = ( | ||||||
|       'desurveil',  |       'mege', | ||||||
|  |       'desurveil', | ||||||
|       'aeltei', |       'aeltei', | ||||||
|       ('roptoligs', 'roptoligs', 'RPG project with planned modules and games', |       ('roptoligs', 'roptoligs', 'RPG project with planned modules and games', | ||||||
|        'http://roptoligs.metanohi.name/'), |        'http://roptoligs.metanohi.name/'), | ||||||
| @ -42,6 +43,7 @@ These are my projects, new and old. | |||||||
|       ) |       ) | ||||||
|     |     | ||||||
|   other_projs = ( |   other_projs = ( | ||||||
|  |       'kando', | ||||||
|       'nanonote', |       'nanonote', | ||||||
|       ('pdfsplit', 'A small Python script to split PDF files on a page-basis', |       ('pdfsplit', 'A small Python script to split PDF files on a page-basis', | ||||||
|        'http://projects.metanohi.name/misc/pdfsplit.tar.gz'), |        'http://projects.metanohi.name/misc/pdfsplit.tar.gz'), | ||||||
|  | |||||||
							
								
								
									
										22
									
								
								site/projects/kando/index.org
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										22
									
								
								site/projects/kando/index.org
									
									
									
									
									
										Normal file
									
								
							| @ -0,0 +1,22 @@ | |||||||
|  | #+title: kando | ||||||
|  | #&summary | ||||||
|  | A simple todo list manager with Emacs integration | ||||||
|  | #& | ||||||
|  | #+license: bysa, text | ||||||
|  | #+license: apache 2, program | ||||||
|  | 
 | ||||||
|  | * kando | ||||||
|  | 
 | ||||||
|  | kando cannot do much. But it can do enough.  | ||||||
|  | #&-large | ||||||
|  | It is a simple todo manager.  | ||||||
|  | #& | ||||||
|  | #&-huge | ||||||
|  | [[kando-0.1.0.tar.gz][Download]]. | ||||||
|  | #& | ||||||
|  | 
 | ||||||
|  | kando is released under the Apache License, version 2.0. | ||||||
|  | 
 | ||||||
|  | kando can also be found in the [[http://pypi.python.org/pypi/kando][Python Package Index]]. | ||||||
|  | 
 | ||||||
|  | kando has its code at Gitorious; see [[http://gitorious.org/kando]]. | ||||||
| @ -31,6 +31,15 @@ tables, this test contains more. And they're all different. | |||||||
| |--------+-----| | |--------+-----| | ||||||
| | Name   | Age | | | Name   | Age | | ||||||
| 
 | 
 | ||||||
|  | ** With caption | ||||||
|  | 
 | ||||||
|  | #+caption: Persons | ||||||
|  | | Name   | Age | | ||||||
|  | |--------+-----| | ||||||
|  | | Xryurg | 300 | | ||||||
|  | | Bkrau  |   2 | | ||||||
|  | 
 | ||||||
|  | 
 | ||||||
| ** Inline formatting in table | ** Inline formatting in table | ||||||
| 
 | 
 | ||||||
| | URL             | Exists | | | URL             | Exists | | ||||||
|  | |||||||
| @ -9,8 +9,29 @@ What my prompt does and what it looks like. | |||||||
| I have my own bash prompt. To use it, first, copy this into your ~.bashrc~: | I have my own bash prompt. To use it, first, copy this into your ~.bashrc~: | ||||||
| 
 | 
 | ||||||
| #+BEGIN_SRC sh | #+BEGIN_SRC sh | ||||||
| PROMPT_COMMAND="EXCO=$?;pwdw=$(($COLUMNS-20))" | function ps1lr { | ||||||
| PS1='\[\033[00m\]$(if [ $EXCO == 0 ]; then echo -ne "\[\033[42m\]\[\033[01;30m\]"; else echo -ne "\[\033[41m\]\[\033[01;34m\]"; fi)$(length-extra-prepend $EXCO 3)\[\033[45m\] \[\033[44m\]\[\033[01;37m\]$(date +%H:%M)\[\033[45m\] \[\033[46m\]\[\033[01;33m\]$(length-too-much-shorten "$(pwd | sed s%$HOME%~%)" $(if (( $pwdw < 20 )); then echo -n 20; else echo -n $pwdw; fi))\[\033[00m\]\n\[\033[45m\]\[\033[01;33m\]\u\[\033[01;32m\]@\[\033[01;36m\]\h\[\033[43m\]\[\033[01;30m\]:\[\033[40m\]\[\033[01;33m\]\$\[\033[00m\] ' |     if [ $1 == 0 ]; then | ||||||
|  |         echo -ne "\033[42m\033[01;30m" | ||||||
|  |     else | ||||||
|  |         echo -ne "\033[41m\033[01;34m" | ||||||
|  |     fi | ||||||
|  |     length-extra-prepend $1 3 | ||||||
|  | } | ||||||
|  | 
 | ||||||
|  | function ps1sp { | ||||||
|  |     pwdw=$(($COLUMNS-20)) | ||||||
|  |     if (( $pwdw < 40 )); then | ||||||
|  |         pwdw=40 | ||||||
|  |     fi | ||||||
|  |     length-too-much-shorten "$(pwd | sed s%$HOME%~%)" $pwdw | ||||||
|  | } | ||||||
|  | 
 | ||||||
|  | #PROMPT_COMMAND="" | ||||||
|  | PS1='\[\033[00m\]$(ps1lr $?)\[\033[45m\] \[\033[44m\]\[\033[01;37m\]\ | ||||||
|  | $(date +%H:%M)\[\033[45m\] \[\033[46m\]\[\033[01;33m\]\ | ||||||
|  | $(ps1sp)\[\033[00m\]\n\[\033[45m\]\[\033[01;33m\]\u\[\033[01;32m\]@\ | ||||||
|  | \[\033[01;36m\]\h\[\033[43m\]\[\033[01;30m\]:\[\033[40m\]\ | ||||||
|  | \[\033[01;33m\]\$\[\033[00m\] ' | ||||||
| #+END_SRC | #+END_SRC | ||||||
| 
 | 
 | ||||||
| Second, download [[bash-prompt-extras.tar.gz]] and put the included programs | Second, download [[bash-prompt-extras.tar.gz]] and put the included programs | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user
	 Niels Serup
						Niels Serup