Skip to content

Instantly share code, notes, and snippets.

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

Raihan Nismara raihan71

🏠
Working from home
View GitHub Profile
@telkomdeveloper
telkomdeveloper / stack.md
Created August 23, 2021 09:14
Development Stack in Telkom DEV - DXB Divisi Digital Bisnis

Android Development

Tools Name Version
Platform Android OS 4.4 KitKat Level 19 or higher
Programming Language Kotlin JDK 8.x
Architecture Model View ViewModel
Rest Response JSON
Local Database SQLite
View Injection ViewBinding
@domzgarcia
domzgarcia / step.md
Last active February 2, 2021 15:03
Setup MERN stack in ubuntu
@raihan71
raihan71 / js-advanced.md
Last active December 31, 2020 04:15
This is about my notes and gists about course from Brad Traversy - "Modern JS From The Beginning"

Modern javascript from the beginning

Useful Syntax

  • console.table(data) = visualized data with ta
  • typeof data = get to know type data of the variable
  • Number(string) = convert number any type to type of number
  • String(number) = convert number any type to type of string
  • toFixed(decimal) = to add custom decimal number
  • parseInt(string or number) = just parse to the integer
  • parseFloat(string or number) = parse to the float type
@bradtraversy
bradtraversy / node_nginx_ssl.md
Last active July 3, 2024 08:13
Node app deploy with nginx & SSL

Node.js Deployment

Steps to deploy a Node.js app to DigitalOcean using PM2, NGINX as a reverse proxy and an SSL from LetsEncrypt

1. Sign up for Digital Ocean

If you use the referal link below, you get $10 free (1 or 2 months) https://m.do.co/c/5424d440c63a

2. Create a droplet and log in via ssh

I will be using the root user, but would suggest creating a new user

@kaleem-elahi
kaleem-elahi / Frame.js
Last active April 5, 2024 15:30
WYSIWYG Editor for React apps with redux-form field
import React, { Component } from 'react';
// import ReactDOM from 'react-dom';
import PropTypes from 'prop-types';
import Linkify from 'react-linkify';
import {
renderToString,
} from 'react-dom/server';
import Parser from 'html-react-parser';
const style =
@jaydenseric
jaydenseric / RouteIndicator.js
Last active November 29, 2023 11:34
A route change indicator for Next.js using React hooks.
import classNameProp from 'class-name-prop';
import { useRouter } from 'next/router';
import React from 'react';
import styles from './RouteIndicator.module.css';
const DONE_DURATION = 250;
export default function RouteIndicator() {
const router = useRouter();
@seahyc
seahyc / software_engineer_coding_test.md
Last active June 12, 2020 07:32
Enlarged sample input size for hdb task

General Brief

There are 2 questions in the assessment, which you can answer in any language. For each test, please commit your code to a private repository on GitHub, with a README.md on how to run it. When you’re done, simply add seahyc and yjwong as collaborators to your private repository.

There's no time limit, but do time yourself for every question beginning from the time you start reading it till your final local commit, and let me know how long you took for each question in the README. We recommend that you set aside 1.5 hours for each task in the test.

You can take in the input either via command-line arguments, or simply assume that it's assigned at the top of your script. Either way, let us know how to inject an input. We'll adapt our test cases accordingly. Very importantly, we trust you to write your solutions independent of any external help.

Task 1

import { Pipe, PipeTransform } from '@angular/core';
/**
* Strips any html characters
* from the `target`, abbreviates the resulting string
* to the max length, and appends an ellipsis character
* to the result.
*
* @example
* {{ title | ellipsis:200 }}
*/
@diogocapela
diogocapela / moment-js-timezones.txt
Created September 7, 2018 00:10
List of All Moment.js Timezones
Africa/Abidjan
Africa/Accra
Africa/Addis_Ababa
Africa/Algiers
Africa/Asmara
Africa/Asmera
Africa/Bamako
Africa/Bangui
Africa/Banjul
Africa/Bissau
@huenisys
huenisys / readme.md
Last active May 2, 2020 20:57
encode private RSA key for gitlab error: "Enter passphrase for /dev/fd/63" error

Encode your private RSA key

$ cat my_private_key | base64 -w0 
# -w0 to avoid newlines

Add the base64 string to your project variables. Use it in your .gitlab-ci.yml