Nothing but the Truth [Elementary]
true| SOURCE="${BASH_SOURCE[0]}" | |
| # resolve $SOURCE until the file is no longer a symlink | |
| while [ -h "$SOURCE" ]; do | |
| TARGET="$(readlink "$SOURCE")" | |
| if [[ $SOURCE == /* ]]; then | |
| SOURCE="$TARGET" | |
| else | |
| DIR="$( dirname "$SOURCE" )" | |
| # if $SOURCE was a relative symlink, we need to resolve it relative | |
| # to the path where the symlink file was located |
| #!/usr/bin/env ruby | |
| require 'rmodbus' | |
| # PORT = '/dev/ttyACM0' | |
| PORT = '/dev/tty.usbmodemfd1221' | |
| def bytes2holdings(bytes) | |
| bytes.each_slice(2).map { |arr| arr[0] * 256 + arr[1].to_i } | |
| end |
| require 'parallel' | |
| require 'curb' | |
| TEST_URL = 'http://www.baidu.com' | |
| def normal | |
| responses = [] | |
| 100.times do | |
| easy = Curl::Easy.new(TEST_URL) | |
| easy.perform |
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <title>Stocks</title> | |
| <meta charset="utf-8" /> | |
| <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.2.0/css/bootstrap.min.css"> | |
| <style type="text/css" media="screen"> | |
| .stock { | |
| min-height: 273px; | |
| padding: 0; |
$ text-builder -index /path/to/index.txt| // ==UserScript== | |
| // @name Github Issue Branch Name | |
| // @namespace http://agate.github.com | |
| // @version 0.1 | |
| // @description Auto generate feature branch with issue's title | |
| // @author agate | |
| // @match https://github.com/*/*/issues/* | |
| // @grant none | |
| // ==/UserScript== |
| <!DOCTYPE html> | |
| <html ng-app="Drawer"> | |
| <head> | |
| <meta charset="utf-8"> | |
| <meta charset="utf-8"> | |
| <meta http-equiv="X-UA-Compatible" content="IE=edge"> | |
| <meta name="viewport" content="width=device-width, initial-scale=1"> | |
| <title>Drawer</title> | |
| <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css" integrity="sha384-1q8mTJOASx8j1Au+a5WDVnPi2lkFfwwEAa8hDDdjZlpLegxhjVME1fgjWPGmkzs7" crossorigin="anonymous"> | |
| <style media="screen"> |