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
| Index: main.vim | |
| =================================================================== | |
| --- main.vim (revision 1075) | |
| +++ main.vim (working copy) | |
| @@ -886,7 +886,7 @@ | |
| " Sets Tlist_Ctags_Cmd for taglist.vim and regexps for ctags {{{ | |
| if exists("g:Tex_TaglistSupport") && g:Tex_TaglistSupport == 1 | |
| if !exists("g:tlist_tex_settings") | |
| - let g:tlist_tex_settings = 'tex;s:section;c:chapter;l:label;r:ref' | |
| + let g:tlist_tex_settings = 'tex;d:Sections;l:Labels;r:References' |
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/bin/env ruby | |
| require 'rubygems' | |
| require 'wikicloth' | |
| contents = ARGF.read | |
| @wiki = WikiCloth::Parser.new({ | |
| :data => contents, | |
| :params => { "test" => "World" } |
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
| import glob | |
| from oppvasp.vasp.parsers import VasprunParser | |
| print "File\t\tz\tE" | |
| for f in glob.glob('vasprun_*.xml'): | |
| vp = VasprunParser(f) | |
| e = vp.get_total_energy() | |
| s = vp.get_final_structure() | |
| p_z = s.get_positions()[0,2] |
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
| if sys.stdout.isatty(): | |
| default_encoding = sys.stdout.encoding | |
| else: | |
| default_encoding = locale.getpreferredencoding() |
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
| # -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4 | |
| # $Id: Portfile 88129 2011-12-20 06:35:07Z [email protected] $ | |
| PortSystem 1.0 | |
| name mesa | |
| epoch 1 | |
| version 7.0.2 | |
| categories x11 graphics | |
| maintainers jeremyhu openmaintainer |
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
| MAKE = make | |
| REM CC = /opt/local/bin/gcc-mp-4.5 | |
| #Need the have-no-getline | |
| CFLAGS = -O2 -m64 -L/opt/local/lib | |
| MATH = -lm | |
| FC = /opt/local/bin/gfortran-mp-4.5 | |
| FFLAGS = -O2 -m64 -L/opt/local/lib |
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
| (function ($, mw) { | |
| if ($.inArray(mw.config.get('wgAction'), ['edit', 'submit']) !== -1) { | |
| var button = { | |
| 'id': "ezzexknappen", | |
| 'tbIcon': "//upload.wikimedia.org/wikipedia/commons/e/e6/Toolbaricon_italics_K.jpg", | |
| 'wikiEditorIcon': "//upload.wikimedia.org/wikipedia/commons/e/e6/Toolbaricon_italics_K.jpg", | |
| 'speedTip': "Kursiv wikilenke", | |
| 'tagOpen': "''[[", | |
| 'tagClose': "]]''", | |
| 'tagPeri': 'Lenke' |
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
| def s2c(s): | |
| """ | |
| Converts vector from spherical to cartesian coordinates | |
| using physics convention (radius, polar/zenith, azimuth) | |
| r : radiu [0, inf] | |
| pol : polar [0, pi] | |
| azi : azimuth [0, 2pi] | |
| """ |
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
| Index: listing.py | |
| =================================================================== | |
| --- listing.py (revision 107) | |
| +++ listing.py (working copy) | |
| @@ -163,13 +163,13 @@ | |
| return page.Page(self.site, self.site.namespaces[self.namespace] + ':' + name, info) | |
| else: | |
| # Guessing page class | |
| - namespace = self.guess_namespace(name) | |
| - if namespace == 14: |
OlderNewer