As configured in my dotfiles.
start new:
tmux
start new with session name:
| { | |
| "metadata": { | |
| "name": "jee-sample" | |
| }, | |
| "kind": "Template", | |
| "apiVersion": "v1beta1", | |
| "description": "This example shows how to create a simple jee application in openshift origin v3", | |
| "parameters": [{ | |
| "name": "MYSQL_USER", | |
| "description": "administrator username", |
| #!/bin/bash | |
| # Preconditions | |
| REQUIRED_DOCKER_VERSION=1.6 | |
| DOCKER_VERSION=`docker version | grep 'Server version' | cut -d ' ' -f 3` | |
| if [[ "$DOCKER_VERSION" < "$REQUIRED_DOCKER_VERSION" ]]; then | |
| echo "Docker ${REQUIRED_DOCKER_VERSION} is required to run Fabric8." | |
| exit -1 | |
| fi |
As configured in my dotfiles.
start new:
tmux
start new with session name:
##what are generators##
yield a value, the function pauses until .next(modifiedYieldValue) is calledvar myGen = function*() {
var one = yield 1;
var two = yield 2;
var three = yield 3;
console.log(one, two, three);| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <meta charset="utf-8"> | |
| <meta name="viewport" content="width=device-width"> | |
| <title>JS Bin</title> | |
| </head> | |
| <body> | |
| <canvas id="mycanvas"></canvas> | |
| <script id="jsbin-javascript"> |
| /** | |
| * Scale | |
| * by Denis Grutze. | |
| * | |
| * modified by Noel. | |
| * | |
| * Paramenters for the scale() function are values specified | |
| * as decimal percentages. For example, the method call scale(2.0) | |
| * will increase the dimension of the shape by 200 percent. | |
| * Objects always scale from the origin. |
| const fs = require('fs'); | |
| const readline = require('readline'); | |
| const axios = require('axios'); | |
| const createCsvWriter = require('csv-writer').createObjectCsvWriter; | |
| const regex = /github\.com\/([^\/]+)\/([^\/]+)$/; | |
| const token = 'xxx'; | |
| // Define the header and data for the CSV file |
| <!DOCTYPE html> | |
| <html lang="en"> | |
| <head> | |
| <meta charset="UTF-8"> | |
| <meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
| <title>Kafka Producer Buffer Simulator</title> | |
| <style> | |
| body { | |
| font-family: Arial, sans-serif; | |
| padding: 20px; |