Skip to content

Instantly share code, notes, and snippets.

View aldidoanta's full-sized avatar

Aldi Doanta Kurnia aldidoanta

View GitHub Profile
@aldidoanta
aldidoanta / 0_README.md
Last active September 20, 2023 12:34
A collection of source schemas and target schemas to test schema matching for the `mp-isim` project https://github.com/aldidoanta/mp-isim
@aldidoanta
aldidoanta / sample-dataprovider-schema.csv
Last active August 31, 2023 23:21
`mp-isim`: sample schema provided by Data Provider, in CSV format
ID DOI Title Year Authors.first_name Authors.last_name Cited by
{
"$id": "https://example.com/person.schema.json",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"title": "Person",
"type": "object",
"properties": {
"firstName": {
"type": "string",
"description": "The person's first name."
},
{
"id": "string",
"name": "string",
"creationDate": "string",
"lastModified": "string",
"contextEvents": [
{
"id": "fc6b2b0c-2f0a-40c6-a580-212c5c7984c8",
"name": "couple vehicle to trip",
"lifecycle": "planned",
@aldidoanta
aldidoanta / main.go
Created January 21, 2021 07:16
main.go
package main
import "fmt"
func main() {
var x, y, z int
fmt.Println("Masukkan x: ")
// fmt.Scan(&x)
x = 3 //isi nilai x

Instalasi PHP dan Composer Menggunakan XAMPP

  1. Install XAMPP https://www.apachefriends.org/index.html. Yang dibutuhkan hanya package yang berhubungan dengan Apache dan MySQL

1.XAMPP Installation

  1. Install Composer. Instruksi detaiil bisa dilihat di https://getcomposer.org/download/, atau langsung download installer dalam bentuk .exe di https://getcomposer.org/Composer-Setup.exe.

2.Composer Installation

2a. Locate php.exe yang ada di \php\php.exe. Jika installation path mengandung tanda kurung, misalnya Progrmam Files (x86), buka \php\php.ini, dan pastikan value dari extension_dir menggunakan double quote (").

@aldidoanta
aldidoanta / workaround.md
Last active March 25, 2020 06:33
Workaround for editing data on pushtable.com; solves an issue where pushtable.com treats `timestamp` type as `string`

1. Log in to http://pushtable.com/, select the Firebase project. At the top-right panel, click Data.

Step 1

2. Select the collection, and then find the column whose type is supposed to be timestamp.

3. Select the dropdown next to the column name, and then click more.

Step 3a Step 3b

@aldidoanta
aldidoanta / delete-slack-messages.js
Last active March 3, 2020 18:02 — forked from firatkucuk/delete-slack-messages.js
Deletes slack public/private channel and chat messages.
#!/usr/bin/env node
// Channel ID is on the the browser URL.: https://mycompany.slack.com/messages/MYCHANNELID/
// Pass it as a parameter: node ./delete-slack-messages.js CHANNEL_ID
// CONFIGURATION #######################################################################################################
const token = 'SLACK TOKEN'; // You can learn it from: https://api.slack.com/custom-integrations/legacy-tokens
// GLOBALS #############################################################################################################
@aldidoanta
aldidoanta / index.js
Last active January 26, 2020 18:16
checkinAlexaSkill Lambda function
exports.handler = (event, context, callback) => {
switch (event.request.type) {
case "LaunchRequest":
// Handles the launch of the skill. Example utterance: "Alexa, open check in."
context.succeed(
generateResponse(buildSpeechletResponse("Welcome to Checkin.", false))
)
break;
case "IntentRequest":
// Handles intents after skill has been launched. Example utterance: "{name} is checking in."