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
{ Author : Cahya Dyazin } | |
{ Blog : www.kang-cahya.com } | |
{ Version : 0.1 } | |
program NilaiMahasiswa; | |
type data = record | |
npm : String; | |
nama : String; | |
uts : Real; |
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
96983749632949234689234932649236493289469236 | |
97938249732432432238497320949032430432048032 | |
23432432432214241948194708207210381300923801 | |
92479864912741970123821038021362137092832080 | |
92638238735497324937983209402374093280432048 | |
93274903270483204709380380480234032083204830 | |
92374023091730170301203018021380273074343293 | |
23423543657878985663453524325346478756856475 |
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
/** | |
* program array 2 dimensi | |
* | |
* @author (Cahya Dyazin) | |
* @version (0.1 11/10/2017) | |
*/ | |
import java.util.Scanner; | |
public class array2dim2 |
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
{* | |
* PROGRAM PASCAL | |
* PRAKTIKUM STRUKTURE DATA | |
* 25 OKTOBER 2017 | |
* - BAD VERSION - | |
*} | |
program datamhs; | |
uses crt; | |
var pil,i,k,j : integer; |
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
<iframe src="https://web.facebook.com/plugins/page.php?adapt_container_width=false&app_id=113869198637480&channel=https%3A%2F%2Fstaticxx.facebook.com%2Fconnect%2Fxd_arbiter%2Fr%2FiPrOY23SGAp.js%3Fversion%3D42%23cb%3Df2d827014fcb94c%26domain%3Ddevelopers.facebook.com%26origin%3Dhttps%253A%252F%252Fdevelopers.facebook.com%252Ff34967aaf9b1bec%26relation%3Dparent.parent&container_width=613&height=330&hide_cover=false&href=https%3A%2F%2Fwww.facebook.com%2Fkangcahyadotcom%2F&locale=en_US&sdk=joey&show_facepile=false&small_header=true&tabs=messages%2C+timeline%2C+events&width=300&_rdr" width="300" height="330"></iframe> |
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 androidDownloadsPath = android.os.Environment.getExternalStoragePublicDirectory( | |
android.os.Environment.DIRECTORY_DOWNLOADS).toString(); | |
// console.log("pathnya : "+androidDownloadsPath); | |
// creates PATH for folder called MyFolder in /Downloads (string value) | |
var myFolderPath = fileSystem.path.join(androidDownloadsPath, dtb.tf_filename); | |
var urldownload=config.apiUrl+"project/download/"+dtb.tf_filename; | |
// console.log(urldownload); | |
// myFolderPath=urldownload; | |
var sqlfile="insert into trx_file (tf_id,tf_rp_id,tf_parent_id,tf_child_id,tf_create_date,tf_su_id,tf_su_username,tf_type,tf_filename,tf_sync,tf_note,tf_lon,tf_lat,tf_filepath,tf_pending) values ('"+dtb.tf_id+"','"+dtb.tf_rp_id+"','"+dtb.tf_parent_id+"','"+dtb.tf_child_id+"','"+dtb.tf_create_date+"','"+dtb.tf_su_id+"','"+dtb.tf_su_username+"','"+dtb.tf_type+"','"+dtb.tf_filename+"','1','"+dtb.tf_note+"','"+dtb.tf_lon+"','"+dtb.tf_lat+"','"+myFolderPath+"','"+dtb.tf_pending+"')"; |
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 isPangram(sentence) | |
{ | |
const setSentence = new Set(sentence.toLowerCase().replace(/[^a-z]/g,"")); | |
return setSentence.size === 26; | |
} | |
const pangram = "The quick brown fox jumps over the crazy little dog"; | |
alert(isPangram(pangram)); //true |
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
<div id="toc"> | |
<script src="https://cdn.rawgit.com/dyazincahya/9ecfa81d87af2bc2e36a6e9566fb67bf/raw/52def2eea6302cf8a43f51ce268bfd78e6ae41e0/k4ng_sitemap.js" type="text/javascript"></script> | |
<script src="https://www.kang-cahya.com/feeds/posts/default?max-results=9999&alt=json-in-script&callback=loadtoc"></script> | |
</div> | |
<!-- OLD --> | |
<!--div id="bp_toc"> | |
</div> | |
<script src="https://cdn.rawgit.com/Arlina-Design/redvision/master/sitemap-content.js" type="text/javascript"></script> <script src="/feeds/posts/summary?alt=json-in-script&max-results=9999&callback=loadtoc" type="text/javascript"></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
<?php | |
function in_array_r($thekey, $arraydata, $strict = false) | |
{ | |
foreach ($arraydata as $item) | |
{ | |
if (($strict ? $item === $thekey : $item == $thekey) || (is_array($item) && in_array_r($thekey, $item, $strict)['found'])) | |
{ | |
return array( | |
"found" => true, | |
"data" => $item |
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 | |
// function | |
function strarr_to_array($a, $t = ''){ | |
$arr = []; | |
$a = ltrim($a, '['); | |
$a = ltrim($a, 'array('); | |
$a = rtrim($a, ']'); | |
$a = rtrim($a, ')'); | |
$tmpArr = explode(",", $a); | |
foreach ($tmpArr as $v) { |