Requires the following brew packages to be installed in MacOS, actual list and names will vary depending on operating system:
pandoc
texlive
Requires the following brew packages to be installed in MacOS, actual list and names will vary depending on operating system:
pandoc
texlive
| // | |
| // A very simple Node.js static file server and Ajax proxy, based on lightnode (https://github.com/ngspinners/lightnode) | |
| // | |
| // Requirements: | |
| // Node.js | |
| // npm for the installation of modules | |
| // lightnode (installed via npm) | |
| // | |
| // How to use, with all dependencies in place: | |
| // node nodeserver.js [/path/to/the/root/folder] |
| Sub LangInFrames() | |
| scount = ActivePresentation.Slides.Count | |
| For j = 1 To scount | |
| fcount = ActivePresentation.Slides(j).Shapes.Count | |
| For k = 1 To fcount | |
| If ActivePresentation.Slides(j).Shapes(k).HasTextFrame Then | |
| ActivePresentation.Slides(j).Shapes(k).TextFrame.TextRange.LanguageID = msoLanguageIDEnglishUK | |
| End If | |
| Next k | |
| Next j |
| // | |
| // How to use: | |
| // | |
| // 1. Start node: | |
| // node nodeproxy.js | |
| // 2. Send a URL like this: | |
| // http://localhost:8080/http://www.google.com | |
| // | |
| // Watch www.google.com come through your local HTTP proxy. | |
| // |
This gist is an implementation of http://sirile.github.io/2015/05/18/using-haproxy-and-consul-for-dynamic-service-discovery-on-docker.html on top of Docker Machine and Docker Swarm.
| <ehcache xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../config/ehcache.xsd" updateCheck="false"> | |
| <!-- This is a default configuration for 256Mb of cached data using the JVM's heap, but it must be adjusted | |
| according to specific requirement and heap sizes --> | |
| <defaultCache | |
| maxBytesLocalHeap="256000000" | |
| eternal="false" | |
| timeToIdleSeconds="120" | |
| timeToLiveSeconds="120" |
| ## Skeleton config file for RetroArch | |
| # Save all save files (*.srm) to this directory. This includes related files like .bsv, .rtc, .psrm, etc ... | |
| # This will be overridden by explicit command line options. | |
| savefile_directory =/storage/.xbmc/userdata/addon_data/emulators.retroarch/save/ | |
| # Save all save states (*.state) to this directory. | |
| # This will be overridden by explicit command line options. | |
| savestate_directory =/storage/.xbmc/userdata/addon_data/emulators.retroarch/save/ |
| // --- cheat sheet --- | |
| // | |
| // Enumerator &> -> filters the output of the enumerator through an Enumeratee | |
| // Enumerator >>> -> alias for andThen; adds the output of the second enumerator after the first one is done | |
| // Enumerator |>> -> feeds the output of the enumerator into the given iteratee for processing | |
| // --- end of cheat sheet --- | |
| // Example | |
| // Iteratee that sums up the size of the input: |
| // | |
| // Compile and run: | |
| // scalac isnumber.scala | |
| // scala IsNumber | |
| // | |
| // this is the class that provides the isNumber method when called on java.lang.String | |
| class ExtendedString(s:String) { | |
| def isNumber: Boolean = s.matches("[+-]?\\d+.?\\d+") | |
| } |
| FROM openjdk:8-jdk AS builder | |
| RUN mkdir /src | |
| COPY HelloWorld.java /src | |
| RUN javac /src/HelloWorld.java | |
| FROM openjdk:8-jre | |
| COPY --from=builder /src/HelloWorld.class / | |
| WORKDIR / | |
| CMD ["java", "HelloWorld"] |