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
| #!/bin/bash | |
| export ANTLR4_JAR=antlr-4.7-complete.jar | |
| if ! type -p java; then | |
| # Install Java 8 | |
| echo "Installing Java 8" | |
| sudo add-apt-repository ppa:webupd8team/java | |
| sudo apt updatee; sudo apt install oracle-java8-installer |
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
| ## | |
| # Check for TMUX session, create or attach "remote" session if connected through | |
| # ssh or create or attach "local" session if connected through other means | |
| HOST_SESSION_NAME="local" | |
| SSH_SESSION_NAME="remote" | |
| SESSION_NAME=$HOST_SESSION_NAME | |
| if [ ! -n "$TMUX" ]; then | |
| if [ -n "$SSH_CLIENT" ] || [ -n "$SSH_TTY" ]; then | |
| SESSION_NAME=$SSH_SESSION_NAME | |
| fi |
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
| ## | |
| # Sources are expected to be layed out like so | |
| # . | |
| # ├── makefile | |
| # └── src | |
| # ├── hashing | |
| # │ ├── hash.c | |
| # │ └── hash.h | |
| # └── main.c | |
| # |
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
| // winston.version === '2.2.0' | |
| var winston = require("winston") | |
| var fs = require("fs") | |
| var path = require("path") | |
| function tryLog(filename, msg) { | |
| var logger = new winston.Logger() | |
| logger.add(winston.transports.File, { | |
| filename: filename, | |
| level : 'verbose', |
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
| #!/bin/bash | |
| # include all .nanorc files from /usr/share/nano | |
| NANORC=~/.nanorc | |
| SOURCE=/usr/share/nano | |
| echo "# from nanomake.sh" > ${NANORC} | |
| echo "set tabsize 2" >> ${NANORC} | |
| echo "set tabstospaces" >> ${NANORC} | |
| ls ${SOURCE} | grep .nanorc | while read FILE; do |
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:latest | |
| MAINTAINER matutter | |
| RUN apk --no-cache add nodejs | |
| RUN apk --no-cache add git | |
| RUN mkdir /home/www | |
| WORKDIR /home/www | |
| ADD package.json |
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
| /* | |
| * To change this license header, choose License Headers in Project Properties. | |
| * To change this template file, choose Tools | Templates | |
| * and open the template in the editor. | |
| */ | |
| package javaapplication23; | |
| import java.io.File; | |
| import java.io.FileInputStream; | |
| import java.io.FileNotFoundException; |
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 <chrono> | |
| #include <iostream> | |
| #include <unistd.h> | |
| class Timer { | |
| private: | |
| static inline unsigned long long CPUCycleCounter(void) { | |
| unsigned long long int x; | |
| __asm__ volatile (".byte 0x0F, 0x31" : "=A" (x)); |
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: https://github.com/matutter/AirRocks-FlightController | |
| JCommand - | |
| SHOULD be the main JSON parsing type | |
| WILL be exception safe | |
| boost causes hangs and weird assemlber errors, v8 embedding is worse... | |
| i NEED c++11 support... next time its going to be an Intel Edison | |
| */ | |
| #ifndef JSON_COMMAND_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
| #def N | |
| #def F | |
| #def I | |
| #def FP | |
| #def TMP | |
| mov N 20 | |
| ;non recursive fib | |
| !fib | |
| cmp N 1 |