This file contains hidden or 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
| #include <stdio.h> | |
| /* | |
| Fungsi untuk: | |
| - Mengurutkan array dengan bubble sort | |
| - Menghitung jumlah swap | |
| */ | |
| int bubbleSortCountSwap(int arr[], int n) { | |
| int swapCount = 0; |
This file contains hidden or 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
| #include <stdio.h> | |
| #include <string.h> | |
| #include <ctype.h> | |
| #define CHAR_COUNT 26 | |
| #define CASES 5 | |
| // Fungsi cek anagram (abaikan spasi & simbol) | |
| int isAnagram(char str1[], char str2[]) { | |
| int count[CHAR_COUNT] = {0}; |
This file contains hidden or 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
| #include <stdio.h> | |
| void sorting(int arr[], int n) { | |
| int temp; | |
| for (int i = 0; i < n - 1; i++) { | |
| for (int j = 0; j < n - i - 1; j++) { | |
| if (arr[j] > arr[j + 1]) { | |
| temp = arr[j]; | |
| arr[j] = arr[j + 1]; | |
| arr[j + 1] = temp; |
This file contains hidden or 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
| #include <stdio.h> | |
| #include <string.h> | |
| #include <ctype.h> | |
| void test1(char kalimat[], char kata[]) { | |
| char kalimat_awal[200]; | |
| // simpan kalimat sebelum diubah | |
| strcpy(kalimat_awal, kalimat); |
This file contains hidden or 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
| #include <iostream> | |
| using namespace std; | |
| int waktu; | |
| int kendaraan; | |
| int biaya = 0; | |
| int main() | |
| { | |
| cout << endl; | |
| cout <<"==============PROGRAM PARKIR KENDARAAN MOTOR DAN MOBIL==============' << endl; | |
| cout << endl; |
This file contains hidden or 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
| """ | |
| edges.py: Canny, Prewitt and Sobel Edge detection using opencv | |
| """ | |
| __author__ = "K.M. Tahsin Hassan Rahit" | |
| __email__ = "tahsin.rahit@gmail.com" | |
| import cv2 | |
| import numpy as np | |
| img = cv2.imread('messi5.jpg') |
This file contains hidden or 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
| <?php | |
| add_action('admin_init', 'add_meta_boxes', 1); | |
| function add_meta_boxes() { | |
| add_meta_box( 'repeatable-fields', 'Audio Playlist', 'repeatable_meta_box_display', 'post', 'normal', 'high'); | |
| } | |
| function repeatable_meta_box_display() { | |
| global $post; |
This file contains hidden or 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
| /* accord start */ | |
| /* Sets width of entire accordion */ | |
| .topbaricons { | |
| max-width: 75%; | |
| margin: 0 auto; | |
| padding: 20px 0; | |
| } | |
| /* Sets width individual icon sections and floats them left */ |
This file contains hidden or 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
| ## Sublime Text 3 Serial key build is 3176 | |
| > * Added these lines into /etc/hosts | |
| 127.0.0.1 www.sublimetext.com | |
| 127.0.0.1 license.sublimehq.com | |
| > * Used the license key | |
| ----- BEGIN LICENSE ----- |
This file contains hidden or 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 masxdeveloper.bordergridview; | |
| import android.content.Context; | |
| import android.support.annotation.LayoutRes; | |
| import android.support.annotation.NonNull; | |
| import android.support.annotation.Nullable; | |
| import android.view.LayoutInflater; | |
| import android.view.View; | |
| import android.view.ViewGroup; | |
| import android.widget.ArrayAdapter; |
NewerOlder