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 {bootstrap, Component, Decorator, View, If, For, EventEmitter} from 'angular2/angular2'; | |
| import {FormBuilder, Validators, FormDirectives, ControlGroup} from 'angular2/forms'; | |
| @Component({ | |
| selector: 'app', | |
| injectables: [FormBuilder] | |
| }) | |
| @View({ | |
| template: ` | |
| <div class="container" [control-group]="myForm"> |
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 | |
| # Get temp dir | |
| tmpdir=$(mktemp -d) | |
| # Generate test | |
| cat > ${tmpdir}/ListenToSignal.java <<EOF | |
| import sun.misc.Signal; | |
| import sun.misc.SignalHandler; | |
| public class ListenToSignal { |
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
| const { DataTypes } = require('sequelize') | |
| module.exports = { | |
| schema: { | |
| id: { | |
| type: DataTypes.INTEGER, | |
| primaryKey: true, | |
| allowNull: false, | |
| autoIncrement: true, | |
| }, |
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 * as models from "models"; | |
| import fs from "fs"; | |
| for(let model in models) { | |
| let attributes = models[model].attributes; | |
| for(let column in attributes) { | |
| delete attributes[column].Model; | |
| delete attributes[column].fieldName; |
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 * as models from "models"; | |
| import Sequelize from "sequelize"; | |
| import fs from "fs"; | |
| delete models.default; | |
| const sequelize = new Sequelize( | |
| '', | |
| '', | |
| '', { |
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
| const util = require('util'); | |
| const WebSocket = require('ws'); | |
| const vehicle_id = ''; // as returned by the /vehicles api call | |
| const token = ''; // tokens[0] as returned by the /vehicles api call | |
| const email = ''; // login e-mail | |
| const stream_columns = [ | |
| 'speed', | |
| 'odometer', |
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
| #!/usr/bin/env bash | |
| # VMware Fusion Latest Version Downloader, Installer, and Updater | |
| # This script automatically finds, downloads, and optionally installs the highest version available | |
| # | |
| # Inspired by this gist: https://gist.github.com/jetfir3/6b28fd279bbcadbae70980bd711a844f | |
| # | |
| # Usage: $0 [-y] [-i] [-d] [-f] [-t <dmg_path>] | |
| # -y: Skip download confirmation prompt | |
| # -i: Automatically install after download (implies -y) |
OlderNewer