Skip to content

Instantly share code, notes, and snippets.

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

Ainun Abdullah abdullahainun

🏠
Working from home
View GitHub Profile
@abdullahainun
abdullahainun / persegi_angka.c
Last active December 15, 2023 11:49
Program Bahasa C Persegi Angka
#include <stdio.h>
int main(void)
{
printf("## Program Bahasa C Persegi Angka ## \n");
printf("====================================== \n\n");
int besar_persegi,baris,kolom, i,j;
printf("Input besar persegi: ");
node {
env.WORKSPACE = pwd()
def now = new Date()
def major = "1"
def month = now.format("M", TimeZone.getTimeZone('UTC'))
def day = now.format("d", TimeZone.getTimeZone('UTC'))
def week = (int)((Integer.parseInt(day,10) - 1) / 7 + 1)
def version = "v"+major+"."+month+"."+week
def name = "microservice-transaksi"
def branch = "master"

FWIW: I'm not the author of the content presented here (which is an outline from Edmond Lau's book). I've just copy-pasted it from somewhere over the Internet, but I cannot remember what exactly the original source is. I was also not able to find the author's name, so I cannot give him/her the proper credits.


Effective Engineer - Notes

What's an Effective Engineer?

@abdullahainun
abdullahainun / source.cpp
Created November 3, 2020 18:29
cpp sample oop project
#include <iostream>
#include <string>
using namespace std;
// Base Class
class Kendaraan {
private:
// Private attribute
string nama;
int jumlahRoda;
FROM alpine:latest
MAINTAINER Ainun Abdullah <abdullah.ainun4@gmail.com>
RUN apk add --update --upgrade bash git curl openssl
RUN apk add php7 \
#REQUIRED BY COMPOSER
php7-json \
#REQUIRED BY COMPOSER
<pmapper>
<ini>
<pmapper>
<pmTitle>p.mapper - A MapServer PHP/MapScript Framework</pmTitle>
<debugLevel>3</debugLevel>
<plugins>export</plugins>
<plugins>scalebar</plugins>
<plugins>transparency</plugins>
</pmapper>
<config>
# Adapt settings in map file <tt>pmapper_demo.map</tt> for the following tags to match settings
# on your machine (see additionally MapServer documentation for detailed information):
# MAP
# SHAPEPATH
# FONTSET
# SYMBOLSET
# WEB
# IMAGEPATH
@abdullahainun
abdullahainun / zeppelin_ubuntu.md
Created July 19, 2018 22:44 — forked from pratos/zeppelin_ubuntu.md
To Install Zeppelin [Scala and Spark] in Ubuntu 16.04LTS

Install Zeppelin in Ubuntu systems

  • First install Java, Scala and Spark in Ubuntu

    • Install Java
      sudo apt-add-repository ppa:webupd8team/java
      sudo apt-get update
      sudo apt-get install oracle-java8-installer
      
import java.util.Scanner;
public class No3 {
public static void main(String[] args) {
Scanner input1 = new Scanner(System.in);
System.out.println("masukkan kalimat :");
String kalimat = input1.nextLine();
char[] kata = kalimat.toCharArray();
char hurufDepan = kata[0];
char hurufBelakang = kata[kata.length-1];
#include <math.h>
#include <GL/glut.h>
#include <time.h>
//#include <fstream.h>
#include <stdarg.h>
#include <stdio.h>
#include <string.h>
typedef struct {
float v[3];