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
var Student = (function(){ | |
var _nim; | |
var _name; | |
function Student(nim, name){ | |
_nim = nim; | |
_name = name; | |
} | |
Student.prototype.getNim(){ |
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
<?php | |
/* | |
* REGISTER JOB POSTS TYPE | |
*/ | |
function jobs_post_type() | |
{ | |
$config = array( | |
'label' => __( 'Jobs', 'jobs' ), | |
'description' => __( 'Jobs', 'jobs' ), |
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
<?php | |
/* | |
* Register Skill Taxonomy | |
*/ | |
function create_skill_taxonomy() { | |
register_taxonomy( | |
'skills', // Taxonomy Name | |
array('job','resume'), // Post Type | |
array( |
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
<?php | |
$termArgs = array( | |
'orderby' => 'name', | |
'hide_empty' => 0 | |
); | |
$skills = get_terms('skills',$termArgs ); |
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
<?php | |
global $current_user, $wpdb; | |
$role = $wpdb->prefix . 'capabilities'; | |
$current_user->role = array_keys($current_user->$role); | |
$role = $current_user->role[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
<VirtualHost *:80> | |
ServerName 7mcity.dev | |
ServerAlias *.7mcity.dev | |
DocumentRoot /home/todiadiyatmo/htdocs/7mcity/ | |
RewriteEngine On | |
<Directory /home/todiadiyatmo/htdocs/7mcity/> | |
Options Indexes FollowSymLinks | |
AllowOverride Fileinfo Options All | |
Order allow,deny |
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
ab -n <num_requests> -c <concurrency> <addr>:<port><path> |
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
// Get class | |
$x("//h2[@class='postingtile']/text()") | |
/// get child of a class | |
$x("//div[@class='post-title']//span") |
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
var vehicle = {}; | |
vehicle.drive = function () { | |
console.log('vrooom...'); | |
}; | |
// Create -> Make car "inherit" vehicle | |
var car = Object.create(vehicle); | |
car.honk = function() { |
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
# Database | |
- Pastikan InnoDB | |
- Maria DB Engine | |
- https://wordpress.org/plugins/wp-optimize/ (per client approval) | |
# Plugin | |
- https://wordpress.org/plugins/all-in-one-wp-security-and-firewall/ | |
- Wang guard | |
# Backup |
OlderNewer