Skip to content

Instantly share code, notes, and snippets.

View azisuazusa's full-sized avatar
👽
Ware ware wa uchuujin da

Azis Abdul Bachar azisuazusa

👽
Ware ware wa uchuujin da
View GitHub Profile
workflows:
version: 2
workflow:
jobs:
- dependencies
- run_unit_test:
requires:
- dependencies
- deploy_beta_staging:
requires:
version: 2
orbs:
slack: circleci/slack@3.2.0
references:
## Workspaces
workspace: &workspace
~/src
## Docker image configurations
android {
}
play {
track = 'alpha' // 'internal' or 'beta'
serviceAccountCredentials = file(System.getenv("DEPLOYMENT_PRIVATE_KEY") ?: "private_key_name.json")
defaultToAppBundles = false
resolutionStrategy = "ignore"
}
android {
signingConfigs {
debug {
storeFile file('../debug.keystore')
storePassword 'android'
keyAlias 'androiddebugkey'
keyPassword 'android'
}
release {
android {
def globalConfiguration = rootProject.extensions.getByName("ext")
defaultConfig {
versionCode globalConfiguration.buildVersion() as int
ext.betaDistributionReleaseNotes = "Notes:\n" + globalConfiguration.commitMessages()
ext.betaDistributionEmails = globalConfiguration.distributionEmails()
}
}
ext {
buildVersion = {
def version = 1
def buildNumber = System.getenv("CIRCLE_BUILD_NUM")
if (buildNumber != null) {
version += buildNumber as int
}
return version
}
program BelanjaBajuImproved;
uses crt;
var
selectedCategory, selectedType: Integer;
price: Double;
inputtedDiscount1, inputtedDiscount2: String;
begin
clrscr;
@azisuazusa
azisuazusa / controller.js
Last active October 5, 2018 10:02
todo-app-rest-men
import mongoose from 'mongoose'
import todo from './model'
export const getTodos = (request, response) => {
todo.find().exec((error, todos) => {
if (error) {
return response.json({
'success': false,
'message': 'Gagal mengambil todos!',
error