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 | |
| # Discussion, issues and change requests at: | |
| # https://github.com/nodesource/distributions | |
| # | |
| # Script to install the NodeSource Node.js 8.x LTS Carbon repo onto a | |
| # Debian or Ubuntu system. | |
| # | |
| # Run as root or insert `sudo -E` before `bash`: | |
| # |
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
| # Usage: (bracket followed by a comma-separated list of names) | |
| # hubot bracket Joe, Fred, Tony, Eddy | |
| https = require('https') | |
| # uses challonge to create a bracket with the given names | |
| module.exports = (robot) -> | |
| robot.respond /bracket\s+(.+?)$/i, (msg) -> | |
| names = msg.match[1] | |
| return unless names |
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.util.Scanner; | |
| public class ProgrammingExercise4_1 { | |
| public static void main(String[] args) { | |
| Scanner input = new Scanner(System.in); | |
| int positives = 0, negatives = 0, total = 0; | |
| // same as: | |
| // int positives = 0; | |
| // int negatives = 0; |