Skip to content

Instantly share code, notes, and snippets.

@kdiniantoro
kdiniantoro / scrapy.md
Created June 1, 2020 08:44 — forked from bradtraversy/scrapy.md
Scrapy commands and code
@kdiniantoro
kdiniantoro / js_linked_list.js
Created May 30, 2020 10:35 — forked from bradtraversy/js_linked_list.js
JS Linked List Class
// Construct Single Node
class Node {
constructor(data, next = null) {
this.data = data;
this.next = next;
}
}
// Create/Get/Remove Nodes From Linked List
class LinkedList {
@kdiniantoro
kdiniantoro / stack.js
Created May 30, 2020 10:32 — forked from bradtraversy/stack.js
Stack data structure
class Stack {
constructor() {
this.items = []
this.count = 0
}
// Add element to top of stack
push(element) {
this.items[this.count] = element
console.log(`${element} added to ${this.count}`)
@kdiniantoro
kdiniantoro / codeiginter-server-config.md
Created December 21, 2019 12:50 — forked from yidas/codeiginter-server-config.md
Codeigniter 3 server configuration for Nginx & Apache

Codeigniter 3 server configuration for Nginx & Apache

Web Server Site Configuration

Recommended Apache Configuration

Use the following configuration in Apache's httpd.conf file or within a virtual host configuration. Note that you should set DocumentRoot and ServerName fit to your environment:

@kdiniantoro
kdiniantoro / flutter_setup.md
Created December 16, 2019 17:51 — forked from bradtraversy/flutter_setup.md
Flutter dev setup & notes
@kdiniantoro
kdiniantoro / pythonscript.py
Created November 4, 2019 18:17 — forked from idreamsi/pythonscript.py
Python script for Telegram
# -*- coding: utf-8 -*-
#!/usr/bin/python
import subprocess
import os
import picamera
import time
import shlex
from datetime import datetime
from datetime import timedelta
import datetime as dt
@kdiniantoro
kdiniantoro / vscode_shortcuts.md
Created November 2, 2019 01:14 — forked from bradtraversy/vscode_shortcuts.md
Helpful shortcuts for VSCode

VSCode Shortcuts

List of helpful shortcuts for faster coding

Official List of all commands

Open/View

@kdiniantoro
kdiniantoro / dtcrashcourse.html
Created October 27, 2019 21:37 — forked from bradtraversy/dtcrashcourse.html
Code From the Developer Tools Crash Course
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<link rel="stylesheet" href="style.css">
<title>Devtools Test</title>
</head>
<body>
@kdiniantoro
kdiniantoro / ssh.md
Created October 20, 2019 22:20 — forked from bradtraversy/ssh.md
SSH & DevOps Crash Course Snippets

SSH Cheat Sheet

This sheet goes along with this SSH YouTube tutorial

Login via SSH with password (LOCAL SERVER)

$ ssh [email protected]

Create folder, file, install Apache (Just messing around)

$ mkdir test

$ cd test

@kdiniantoro
kdiniantoro / myscript.sh
Created October 20, 2019 22:15 — forked from bradtraversy/myscript.sh
Basic Shell Scripting
#! /bin/bash
# ECHO COMMAND
# echo Hello World!
# VARIABLES
# Uppercase by convention
# Letters, numbers, underscores
NAME="Bob"
# echo "My name is $NAME"