Skip to content

Instantly share code, notes, and snippets.

View muhamadalfarisy98's full-sized avatar

muhamadalfarisy98

View GitHub Profile
func isPalindrome(word string) bool {
// first alternative
reversedWord := reverseString(word)
return word == reversedWord
}
func reverseString(word string) (result string) {
for _, val := range word{
result = string(val) + result
}
@muhamadalfarisy98
muhamadalfarisy98 / sample code
Last active March 3, 2022 08:28
sample code
var x = 3
fmt.Println(&x)
fmt.Println()
var z *int = &x
fmt.Println(z)
*z = 10
fmt.Println(x)
[options]
#
# WARNING:
# If you use the Odoo Database utility to change the master password be aware
# that the formatting of this file WILL be LOST! A copy of this file named
# /etc/odoo/openerp-server.conf.template has been made in case this happens
# Note that the copy does not have any first boot changes
#-----------------------------------------------------------------------------
# Odoo Server Config File - TurnKey Linux
@muhamadalfarisy98
muhamadalfarisy98 / API.md
Created July 1, 2021 02:21 — forked from iros/API.md
Documenting your REST API

Title

<Additional information about your API call. Try to use verbs that match both request type (fetching vs modifying) and plurality (one vs multiple).>

  • URL

    <The URL Structure (path only, no root url)>

  • Method:

#include <Servo.h>
#define BLYNK_PRINT Serial
#include <ESP8266WiFi.h>
#include <BlynkSimpleEsp8266.h>
#define Ts 1000
#include <ThreeWire.h>
#include <RtcDS1302.h>
// You should get Auth Token in the Blynk App.
// Go to the Project Settings (nut icon).