This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
""" | |
file: hashtable.py | |
language: python3 | |
author: sps@cs.rit.edu Sean Strout | |
author: jeh@cs.rit.edu James Heliotis | |
author: anh@cs.rit.edu Arthur Nunes-Harwitt | |
author: hotchkiss@rit.edu Collin Hotchkiss | |
description: open addressing Hash Table for CS 242 Lecture | |
""" | |
import copy |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from linked_list import LinkedList | |
class HashTable(object): | |
def __init__(self, items = None): | |
"""Initialize this HashTable and set items if specified""" | |
self.slots = [LinkedList() for i in range(8)] # start with 8 slots | |
self.size = 0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
DROP TABLE IF EXISTS `tbl_barang`; | |
CREATE TABLE `tbl_barang` ( | |
`kode_barang` char(9) NOT NULL, | |
`nama_barang` varchar(50) NOT NULL, | |
`harga` double NOT NULL, | |
`id_kategori` mediumint(9) NOT NULL, | |
PRIMARY KEY (`kode_barang`), | |
KEY `id_kategori` (`id_kategori`), | |
CONSTRAINT `tbl_barang_ibfk_1` FOREIGN KEY (`id_kategori`) REFERENCES `tbl_kategori` (`id_kategori`) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
CREATE TABLE tbl_pesanan ( | |
no_pesanan CHAR(10) NOT NULL, | |
tgl_pesan date, | |
kode_pelanggan CHAR(10) NOT NULL, | |
kode_barang CHAR(9) NOT NULL, | |
jumlah_pesan double NOT NULL, | |
PRIMARY KEY (no_pesanan) | |
); | |
ALTER TABLE tbl_pesanan ADD FOREIGN KEY (kode_pelanggan) REFERENCES tbl_pelanggan(kode_pelanggan); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.agungpambudi.generic; | |
public class Main { | |
public static void main(String[] args) { | |
String[] data = new String[15]; | |
for (String vararr : data) { | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Web Services : komponen aplikasi yang tersedia dan dapat diakses melalui internet dan menggunakan XML sebagai standar pengiriman pesan. | |
# WSDL (Web Services Description Language) : merupakan dokumen XML yang digunakan untuk mendeskripsikan web service. | |
# SOAP (Simple Object Access Protocol) : merupakan protokol berbasis XML yang digunakan untuk mempertukarkan pesan dalam web service. | |
# Service provider : pihak yang menyediakan layanan. | |
# Service registry : pihak yang menjadi tempat untuk mempublikasikan dan mencari layanan. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
SELECT SYS_GUID() FROM dual; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# When I am updating Alloy, I am getting error. After tried everything I know, but I am still having error. | |
# This my log error: | |
# "npm ERR! fetch failed https://registry.npmjs.org/alloy/-/alloy-1.4.1.tgz" | |
# Failed to install alloy. | |
# Just run | |
D:\> npm cache clean |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# I am trying to install the Titanium Studio in my Windows 8 laptop but there is an error. I found the way to fix this problem. | |
# The error during installation Titanium Studio: | |
# "Failed to load the JNI shared library on C:\Program File\Java\JDK 1.7.0_60\bin\...\jre | |
# Resolved.... | |
# For Windows, the 32-bit version of Java JDK is required regardless of whether Titanium is running on a 32-bit or 64-bit Windows system. | |