Skip to content

Instantly share code, notes, and snippets.

View khayyamsaleem's full-sized avatar
🏠
Working from home

khayyam khayyamsaleem

🏠
Working from home
View GitHub Profile
stages:
- build
- push
- deploy
Get Prod Environment Variables:
stage: build
image: lyasper/s3cmd
only:
- master
const fetch = require('node-fetch')
const { odrs } = require('./07-09-2019.json')
odrs.forEach(o => {
fetch('http://localhost:8080/api/v1/odr/raw', {
method: 'POST',
body: JSON.stringify(o)
}).then(res => res.json()).then(j => {
if (!j.success) {
console.log(o)
public class BigInteger {
DigitNode front;
private static class DigitNode {
int digit;
DigitNode next;
public DigitNode(int digit) {
this.digit = digit;
this.next = null;
}
public DigitNode(int digit, DigitNode next) {
public class BigInteger {
DigitNode front;
private static class DigitNode {
int digit;
DigitNode next;
public DigitNode(int digit) {
this.digit = digit;
this.next = null;
}
public class BigInteger {
DigitNode front;
private static class DigitNode {
int digit;
DigitNode next;
public DigitNode(int digit) {
this.digit = digit;
this.next = null;
}
public class BigInteger {
DigitNode front;
private static class DigitNode {
int digit;
DigitNode next;
public DigitNode(int digit) {
this.digit = digit;
this.next = null;
}
stages:
- build
- push
- deploy
Get Prod Environment Variables:
stage: build
image: lyasper/s3cmd
only:
- master
(package-initialize)
(tool-bar-mode -1)
(require 'package)
(require 'evil)
(evil-mode t)
(global-linum-mode t)
(when (null window-system)
(menu-bar-mode 0))
; (require 'xscheme)
(add-to-list 'load-path "~/.emacs.d/extendos")
(package-initialize)
(tool-bar-mode -1)
(require 'package)
(require 'evil)
(evil-mode t)
(global-linum-mode t)
(when (null window-system)
(menu-bar-mode 0))
; (require 'xscheme)
(add-to-list 'load-path "~/.emacs.d/extendos")
#include <iostream>
using namespace std;
// width and height of the board
const int width = 7, height = 6;
//pieces
const char EMPTY = '_', X = 'X', O = 'O';
//board is represented with a 2-dimensional char array
char board[height][width];