This file contains 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
const axios = require('axios'); | |
const initializeTransaction = (body, access_token) => async () => { | |
const headers = { | |
"Content-Type": "application/json", | |
"Authorization": "Bearer " + access_token | |
}; | |
try { | |
const response = await axios.post("https://sandbox.safaricom.co.ke/mpesa/stkpush/v1/processrequest", body, { headers }); | |
const resultData = response.data; |
This file contains 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
BINANCE_API_KEY= | |
BINANCE_SECRET_KEY= | |
BINANCE_API_URL=https://fapi.binance.com |
This file contains 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
shader_type spatial; | |
render_mode cull_disabled, blend_mix,diffuse_burley, specular_schlick_ggx; | |
uniform sampler2D u_terrain_heightmap; | |
uniform sampler2D u_terrain_detailmap; | |
uniform sampler2D u_terrain_normalmap; | |
uniform sampler2D u_terrain_globalmap : hint_albedo; | |
uniform mat4 u_terrain_inverse_transform; | |
uniform mat3 u_terrain_normal_basis; |
This file contains 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
extends Control | |
var data_file = "user://save" | |
func _ready(): | |
print("checking if a registration has happened before") | |
var registrationData = load_from_file() | |
print("data returned from loading function ", registrationData) |
This file contains 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
extends Node | |
onready var types = get_node('/root/action_types') | |
func game_set_start_time(time): | |
return { | |
'type': types.GAME_SET_START_TIME, | |
'time': time | |
} |
This file contains 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
const moment = require("moment") | |
//login | |
const user_login_input = { | |
"username": "test", | |
"password": "test" | |
} | |
const user_login_output = { | |
"status": 1, // or 0 if failed, |
This file contains 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 Waterline = require("waterline"); | |
export default Waterline.Collection.extend({ | |
identity: "innitializations", | |
datastore: "default", | |
primaryKey: "id", | |
attributes: { | |
id: { type: "string", required: true }, | |
phoneNumber: { type: "string", required: true }, |
This file contains 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
tool | |
extends Spatial | |
export var cluster_size = 3 | |
# Called when the node enters the scene tree for the first time. | |
onready var box = preload("res://obj1.tscn") | |
func _ready(): | |
print('cleaning up exising trees') | |
var boxes = get_tree().get_nodes_in_group("box_group") |
This file contains 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
ACCESS_KEY_ID=... | |
SECRET_ACCESS_KEY=... | |
AWS_REGION=... | |
S3_BUCKET=... |
This file contains 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
JAVA_HOME=$(dirname $( readlink -f $(which java) )) | |
JAVA_HOME=$(realpath "$JAVA_HOME"/../) | |
export JAVA_HOME | |
System Specifications | |
=========================================================== | |
➜ ~ sudo lshw -short | |
H/W path Device Class Description | |
=============================================================== | |
system HP ENVY dv6 Notebook PC (C2L47UA#ABA) |
NewerOlder