Skip to content

Instantly share code, notes, and snippets.

View melioratus's full-sized avatar
💭
Inside emacs

Brian Smith melioratus

💭
Inside emacs
View GitHub Profile
Assuming the base URL to be this (need to edit to fit yours):
http://cqauthor1.company.com:4502
SEARCH
Search UI:
/crx/explorer/ui/search.jsp?Path=&Query=
@ECHO OFF
REM -- Automates cygwin installation
SETLOCAL
REM -- Change to the directory of the executing batch file
CD %~dp0
REM -- Configure our paths
SET SITE=http://mirrors.kernel.org/sourceware/cygwin/
@melioratus
melioratus / excel_xml_spreadsheet_example.md
Created April 29, 2016 23:47 — forked from ilyazub/excel_xml_spreadsheet_example.md
Excel 2003 XML Spreadsheet example

Excel 2003 XML Spreadsheet example

Solved errors

Problem During Load because of wrong ss:ExpandedRowCount.

If this value is out-of-sync with the table, the specified XML Spreadsheet document is invalid.

Check out XML Spreadsheet Reference for details.

Problem During Load because of empty rows and cells. Check out Table options.

@melioratus
melioratus / gist:90252660aa710ef0f5219a1828ce9a33
Last active September 26, 2017 18:52 — forked from rkumar/gist:445735
ruby's OptionParser to get subcommands
#!/usr/bin/env ruby -w
## Using ruby's standard OptionParser to get subcommand's in command line arguments
## Note you cannot do: opt.rb help command
## other options are commander, main, GLI, trollop...
# run it as
# ruby opt.rb --help
# ruby opt.rb foo --help
# ruby opt.rb foo -q
# etc
@melioratus
melioratus / language-sampleGrammar.cson
Created September 27, 2017 21:50 — forked from DamnedScholar/language-sampleGrammar.cson
Grammar boilerplate with annotations.
# TextMate tutorial: http://manual.macromates.com/en/language_grammars
# Regex to convert keys to unquoted: '(include|match|captures|begin|end|beginCaptures|endCaptures|name|patterns|0|1|2|3|4|5|6|7|8|9|comment|fileTypes|scopeName|repository|contentName|firstLineMatch|foldingStartMarker|foldingStopMarker)':
scopeName: 'source.<scope>' # <scope> should be a short, unique indicator for the language ("js", "php", "c", etc.)
name: '<name>' # The title that will show up in grammar selection and on your status bar.
fileTypes: [ # An array of file extensions.
'txt'
'exif'
]
@melioratus
melioratus / asciinator.py
Created October 20, 2017 16:04 — forked from cdiener/asciinator.py
asciinator.py now with documentation
# This line imports the modules we will need. The first is the sys module used
# to read the command line arguments. Second the Python Imaging Library to read
# the image and third numpy, a linear algebra/vector/matrix module.
import sys; from PIL import Image; import numpy as np
# This is a list of characters from low to high "blackness" in order to map the
# intensities of the image to ascii characters
chars = np.asarray(list(' .,:;irsXA253hMHGS#9B&@'))
# Check whether all necessary command line arguments were given, if not exit and show a
@melioratus
melioratus / issue-49.org
Created March 30, 2018 21:37 — forked from wallyqs/issue-49.org
Images with hyperlinks...

Referring to this issue: wallyqs/org-ruby#49

#+html: <img src="https://ci.appveyor.com/api/projects/status/32r7s2skrgm9ubva?svg=true&passingText=master%20-%20OK" alt="Project Badge">

Project Badge

#+html: <a href="https://ci.appveyor.com/project/justinjk007/pentagonal-tiling"> <img src="https://ci.appveyor.com/api/projects/status/ldc8jtft09n5997e?svg=true" alt="Project Badge"> </a>
Project Badge

To display verbatim (=) or code (~) syntax characters in org-mode

  • To display verbatim syntax wrap string in code syntax.
    =verbatim=  becomes ~=verbatim=~
        

    verbatim becomes =verbatim=

  • To display code syntax wrap string in verbatim syntax.