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
<html> | |
<head> | |
<title>auto reload div by jquery from php</title> | |
</head> | |
<body> | |
<center><strong><u>This is Realtime data : </u></strong></br> | |
<div id=content_div_id></div> | |
</center> | |
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.3/jquery.min.js"></script> |
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
DECLARE @mydate DATETIME,@devval VARCHAR(50) | |
set @devval='2015-04-01' | |
SELECT @mydate = GETDATE() | |
-- Monday of Current Week | |
SELECT DATEADD(WEEK, DATEDIFF(WEEK, 0, @devval), 0), | |
'Monday of Current Week' |
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
<?//= $form->field($model, 'nm_menu', ['template' => "{label}\n<i class='fa fa-user'></i>\n{input}\n{hint}\n{error}"])->textInput(array('placeholder' => 'Username')); ?> |
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
begin | |
DECLARE id_old,id_new INT(11); | |
DECLARE id_var varchar(20); | |
SELECT ifnull(right(MAX(kd_berita),4),'0000') into id_var from a1000 where status | |
set id_old=cast( id_var as unsigned); | |
set id_new= id_old+1; | |
SET id_var = ''; | |
SET id_old = 1; |
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
begin | |
DECLARE id_old,id_new INT(11); | |
DECLARE id_var varchar(20); | |
SELECT ifnull(right(MAX(kd_berita),4),'0000') into id_var from a1000 where month(CURDATE())=month(created_at); | |
set id_old=cast( id_var as unsigned); | |
set id_new= id_old+1; | |
SET id_var = ''; | |
SET id_old = 1; |
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
Sub Gabung() | |
On Error Resume Next | |
Dim i As Long, iMatches As Long, j As Integer | |
Dim aTokens() As String: aTokens = Split("reply,response", ",") | |
Dim AA As String | |
For j = 1 To 31 | |
If j < 10 Then AA = "0" & Trim(Str(j)) Else AA = Trim(Str(j)) | |
For Each cell In Sheets(AA).Range("A5:A1000") |
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 | |
error_reporting(E_ALL); | |
echo "<h2>TCP/IP Connection</h2>\n"; | |
/* Get the port for the WWW service. */ | |
$service_port = getservbyname('www', 'tcp'); | |
/* Get the IP address for the target host. */ | |
$address = gethostbyname('www.example.com'); |
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
Don't get confused with other option the snippet below I am using and will be useful for you too. Put the below htacces in your root. | |
<IfModule mod_rewrite.c> | |
RewriteEngine on | |
# Force SSL | |
#RewriteCond %{HTTPS} !=on | |
#RewriteRule ^ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301] | |
RewriteRule ^$ public/ [L] | |
RewriteRule (.*) public/$1 [L] |
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
function jumpto | |
{ | |
label=$1 | |
cmd=$(sed -n "/$label:/{:a;n;p;ba};" $0 | grep -v ':$') | |
eval "$cmd" | |
exit | |
} | |
start=${1:-"start"} |
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
#!/usr/bin/env bash | |
# OS VERSION: CentOS 6.x + Minimal | |
# ARCH: 32bit + 64bit | |
ARD_BASH_INSTALLER=1.0 | |
#blok fungsi | |
#============================================================== |
OlderNewer