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
| --- | |
| - hosts: localhost | |
| become: yes | |
| tasks: | |
| - name: Install nodejs | |
| apt: | |
| name: nodejs-legacy | |
| state: present | |
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
| --- | |
| - hosts: localhost | |
| gather_facts: no | |
| become: yes | |
| tasks: | |
| - name: Get credentials from vault | |
| include_vars: | |
| file: password.yml |
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
| --- | |
| - hosts: localhost | |
| gather_facts: no | |
| become: yes | |
| tasks: | |
| - name: Update all packages | |
| apt: | |
| update_cache: yes |
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
| curl -D- -u scrumuser2017@gmail.com:scrumster2017 -X POST --data @C:/HackNC17/test.json -H "Content-Type: application/json" https://scrumster.atlassian.net/rest/agile/1.0/sprint/1/issue | |
| //test.json | |
| { | |
| "issues": [ | |
| "AT-8" | |
| ] | |
| } |
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
| function get_line(filename, line_no, callback) { | |
| var data = fs.readFileSync(filename, 'utf8'); | |
| var lines = data.split("\n"); | |
| if(+line_no > lines.length){ | |
| throw new Error('File end reached without finding line'); | |
| } | |
| callback(null, lines[+line_no]); | |
| } |
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
| var esprima = require("esprima"); | |
| var options = {tokens:true, tolerant: true, loc: true, range: true }; | |
| var fs = require("fs"); | |
| function main() | |
| { | |
| var args = process.argv.slice(2); | |
| if( args.length == 0 ) | |
| { |
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
| /** | |
| * Definition for singly-linked list. | |
| * public class ListNode { | |
| * int val; | |
| * ListNode next; | |
| * ListNode(int x) { val = 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
| class Node{ | |
| int data; | |
| Node next; | |
| Node(int k){ | |
| data = k; | |
| next=null; | |
| } | |
| } |
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.*; | |
| public class Solution { | |
| public static boolean canWin(int leap, int[] game) { | |
| // Return true if you can win the game; otherwise, return false. | |
| int n = game.length; | |
| boolean[] boolist = new boolean[n]; | |
| boolean result = false; | |
| int n1 = 0; |
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.io.*; | |
| import java.util.*; | |
| import java.text.*; | |
| import java.math.*; | |
| import java.util.regex.*; | |
| public class Solution { | |
| public static void main(String[] args) { | |
| /* Enter your code here. Read input from STDIN. Print output to STDOUT. Your class should be named Solution. */ |