Moved to https://github.com/jeffs/resume.
  
    
      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
    
  
  
    
  | # Dummy function. In your case, blast2 is a real program. | |
| blast2() { | |
| let 'i = 0' | |
| while true; do | |
| let 'i++' | |
| echo $i | |
| sleep 1 | |
| done | |
| } | 
  
    
      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
    
  
  
    
  | touch() { | |
| for f in "$@"; do | |
| mkdir -p "$(dirname "$f")" && /usr/bin/touch "$f" | |
| done | |
| } | 
  
    
      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
    
  
  
    
  | FROM alpine | |
| RUN apk update \ | |
| && apk add alpine-sdk linux-headers \ | |
| python py3-pip python3-dev \ | |
| py3-libxml2 libxml2-dev libxslt-dev | |
| # ==================================================================== | |
| # All commands below this paragraph are from the quick-start guide at: | |
| # http://airflow.apache.org/installation.html | 
  
    
      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
    
  
  
    
  | cmake_minimum_required(VERSION 3.9) | |
| project(Play LANGUAGES CXX) | |
| set(CMAKE_CXX_STANDARD 17) | |
| set(CMAKE_CXX_EXTENSIONS OFF) | |
| include_directories(${PROJECT_SOURCE_DIR}) | |
| add_executable(main main.cpp) | 
  
    
      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
    
  
  
    
  | // c++ -std=c++1z -pedantic -Wall main.cpp | |
| constexpr int xs[]{ 1, 2 }; | |
| constexpr int ys[*xs]{}; | |
| template<int N> struct wrap { enum { value = *xs }; }; | |
| template<int N> constexpr int wrap_v = wrap<N>::value; | |
| int main() { | |
| static_assert(xs[0] == 1, "head of xs must be 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
    
  
  
    
  | import java.io.PrintWriter; | |
| class Main { | |
| public static void main(String[] args) { | |
| final double seconds = 400_000; | |
| final double minutes = seconds / 60; | |
| final double hours = minutes / 60; | |
| final double days = hours / 24; | |
| PrintWriter out = new PrintWriter(System.out, true); | |
| out.println(days); | 
  
    
      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
    
  
  
    
  | #include <cstdlib> | |
| #include <fstream> | |
| #include <iostream> | |
| #include <map> | |
| #include <unordered_set> | |
| #include <string> | |
| template <class K, class V> using Map = std::map<K, V>; | |
| template <class T> using Set = std::unordered_set<T>; | 
  
    
      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
    
  
  
    
  | struct some { }; | |
| // before: a function that does *almost* what someone wants | |
| void f(some args) { /* ... */ } | |
| // after: trailing bool with default value (so existing callers don't break) | |
| void f(some args, bool b =true) { | |
| // ... | |
| if (b) /* old behavior */ ; | |
| else /* new behavior */ ; | 
  
    
      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
    
  
  
    
  | /** @file pig.cpp Purely functional Pig Latin. | |
| * | |
| * \code{.sh} | |
| * $ clang++ -o pig -std=c++14 -pedantic -Wall pig.cpp | |
| * $ ./pig hello world | |
| * ellohay orldway | |
| * \endcode | |
| * | |
| * @todo Preserve case. | |
| * @todo Respect punctuation. |