Skip to content

Instantly share code, notes, and snippets.

View kmurudi's full-sized avatar

Kshitija Murudi kmurudi

View GitHub Profile
---
- hosts: localhost
become: yes
tasks:
- name: Install nodejs
apt:
name: nodejs-legacy
state: present
---
- hosts: localhost
gather_facts: no
become: yes
tasks:
- name: Get credentials from vault
include_vars:
file: password.yml
---
- hosts: localhost
gather_facts: no
become: yes
tasks:
- name: Update all packages
apt:
update_cache: yes
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"
]
}
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]);
}
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 )
{
/**
* Definition for singly-linked list.
* public class ListNode {
* int val;
* ListNode next;
* ListNode(int x) { val = x; }
* }
*/
class Node{
int data;
Node next;
Node(int k){
data = k;
next=null;
}
}
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;
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. */