Skip to content

Instantly share code, notes, and snippets.

View maulayyacyber's full-sized avatar
👨‍💻
Working on @SantriKoding-com

Fika Ridaul Maulayya maulayyacyber

👨‍💻
Working on @SantriKoding-com
View GitHub Profile
@maulayyacyber
maulayyacyber / cdn_helper.php
Last active September 7, 2020 19:52
How To Create CDN on CodeIgniter
<?php
defined('BASEPATH') OR exit('No direct script access allowed');
/**
* @package Content Delivery Network - BelanCon.com | Belanja Icon
* @version 1.0
* @author Belancon Dev Team
* @copyright Copyright © 2016 Belancon - Belanja Icon.
* @link https://belancon.com
*/
@maulayyacyber
maulayyacyber / config.php
Created July 27, 2016 12:24
How To Make base_url() Dinamis on CodeIgnter
//config base_url
*/
$config['base_url'] = "http://".$_SERVER['HTTP_HOST'].
str_replace(basename($_SERVER['SCRIPT_NAME']),"",$_SERVER['SCRIPT_NAME']);
/*
@maulayyacyber
maulayyacyber / .htaccess
Created March 14, 2017 00:18
.htaccess CodeIgniter
RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule .* index.php/$0 [PT,L]
@maulayyacyber
maulayyacyber / System_helper.php
Created March 14, 2017 00:22
Helper System CodeIgniter
<?php
defined('BASEPATH') OR exit('No direct script access allowed');
/**
* @package : Medical Top Team.
* @author : Fika Ridaul Maulayya <ridaulmaulayya@gmail.com>
* @since : 2017
* @license : https://maulayya.com/portofolio/medical-top-team/
*/
if(!function_exists('systems'))
{
find . -type d | while read folder ; do chmod 755 "$folder" ; done
find . -type f | while read file ; do chmod 644 "$file" ; done
<div class="search">
<form class="navbar-form navbar-left" style="padding-left: 40px;padding-right: 40px;margin-top: 16px" action="<?php echo base_url() ?>search" accept-charset="UTF-8" method="get">
<div class="input-group">
<input type="text" id="q" class= "typeahead tt-query" name="q" placeholder="Cari sesuatu disini..." style="border-radius: 0px;font-size: 16px;" autocomplete="off">
<input type="hidden" name="<?php echo $this->security->get_csrf_token_name(); ?>" value="<?php echo $this->security->get_csrf_hash(); ?>">
<span class="input-group-btn">
<button type="submit" class="btn btn-default" style="border-radius: 0px;background: #f8f8f8;font-weight: 400;font-size:14px;text-transform: uppercase"><i class="fa fa-search" style="margin: 0 15px;"></i></button>
</span>
</div>
</form>
//jquery
!function(e,t){"object"==typeof module&&"object"==typeof module.exports?module.exports=e.document?t(e,!0):function(e){if(!e.document)throw new Error("jQuery requires a window with a document");return t(e)}:t(e)}("undefined"!=typeof window?window:this,function(e,t){function n(e){var t=!!e&&"length"in e&&e.length,n=fe.type(e);return"function"!==n&&!fe.isWindow(e)&&("array"===n||0===t||"number"==typeof t&&t>0&&t-1 in e)}function r(e,t,n){if(fe.isFunction(t))return fe.grep(e,function(e,r){return!!t.call(e,r,e)!==n});if(t.nodeType)return fe.grep(e,function(e){return e===t!==n});if("string"==typeof t){if(Te.test(t))return fe.filter(t,e,n);t=fe.filter(t,e)}return fe.grep(e,function(e){return fe.inArray(e,t)>-1!==n})}function i(e,t){do{e=e[t]}while(e&&1!==e.nodeType);return e}function o(e){var t={};return fe.each(e.match(Se)||[],function(e,n){t[n]=!0}),t}function a(){ne.addEventListener?(ne.removeEventListener("DOMContentLoaded",s),e.removeEventListener("load",s)):(ne.detachEvent("onreadystatechange",s),e.de
<div class="jumbotron" style="margin-top: 50px; padding-top: 105px;color: rgba(255,255,255,0.6);background: url('https://i.imgur.com/k1kzqQC.jpg'),#3c434a;background-position: center 10%; background-attachment: fixed;background-position: center;background-repeat: no-repeat;background-size: cover;">
<div class="container" style="text-align: center; color: white;padding-bottom: 20px">
<img src="<?php echo base_url(); ?>resources/images/logo-jumbroton.png" class="img-responsive" style="display: initial;">
<p style="padding-right: 18%;padding-left: 18%;font-family: Roboto;font-weight: 300">RubyPedia.com adalah situs yang menyediakan tutorial & screencast pemrogramman ruby dengan bahasa indonesia.</p>
<p style="margin-top: 40px">
<a class="play-trigger" data-toggle="modal" data-target="#modal-video" data-backdrop="static" data-keyboard="false" style="color: white;font-family: Roboto;font-weight: 300;text-decoration: none;cursor: pointer;"><img class="play-icon" src=
<?php if ($this->apps->apps_id()) { ?>
<?php
if($this->session->userdata("apps_foto") == "")
{
$avatar = base_url().'resources/images/avatar/user.png';
}else{
$avatar = base_url().'resources/images/avatar/'.$this->session->userdata('apps_foto');
}
<!DOCTYPE html>
<html>
<head>
<title>Marker 1 Koordinat</title>
<style>
html, body {height: 100%; margin: 0; padding: 0;}
#Peta_1 {height: 100%;}
</style>
<script type="text/javascript" src="http://maps.google.com/maps/api/js?sensor=false&key=AIzaSyB_5vWwYleNcKhbnG1qimGxIq6W9-qBklU"></script>
<script type="text/javascript">