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 | |
// Your code here! | |
$num_list = array( 5, 20, 22, 35, 64, 71 ); | |
//$num_list = array( 5, 20, 22, 35 ); | |
$tree = array(); | |
function search( $num_list, &$tree, $index ){ | |
$arrayCount = count( $num_list ); | |
//底まで探索 | |
if( !array_key_exists( $index+1, $num_list ) ){ | |
return array( $num_list[$index] ); |
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
Filled: <span id="filled"></span>/<span id="area"></span> (<span id="pct"></span>%) | |
<canvas width="800" height="600"></canvas> |
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
FROM hseeberger/scala-sbt:8u222_1.3.7_2.12.10 | |
WORKDIR /app |
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 array_filter_recursive($input) | |
{ | |
foreach ($input as &$value) { | |
if (is_array($value)) { | |
$value = array_filter_recursive($value); | |
} | |
} | |
return array_filter($input); | |
} |
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 | |
class CheckDigitUtility extends AbstractUtility | |
{ | |
static public function mod10( $value, $weight = 3 ) | |
{ | |
$length = strlen( $value ); | |
$v = strrev( $value ); | |
$sum = 0; |
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
$ openssl pkcs12 -export -in pub.cer -inkey secret.key -out product.pfx |
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 | |
class SQLBuilder { | |
private $_select = array(); | |
private $_from = array(); | |
private $_where = array(); | |
private $_order = array(); | |
private $_group = array(); | |
private $_having = null; |
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 | |
class APNSUtility | |
{ | |
private $_certfile; | |
private $_message; | |
private $_priority; | |
private $_apns_server; | |
private $_debug = false; |
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 | |
require "../system/core/framework/lib/super.php"; | |
require "../classes/utilities/CsvUtility.php"; | |
$old_file = "/home/remote/old.csv"; | |
$new_file = "/home/remote/new.csv"; | |
$old_only = array(); | |
$new_record_list = csv_file_to_array( $new_file ); |
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
#import <UIKit/UIKit.h> | |
@interface ViewController : UIViewController | |
@property (weak, nonatomic) IBOutlet UIWebView *webView; | |
@property (weak, nonatomic) IBOutlet UILabel *topLabel; | |
- (IBAction)startView:(UIButton *)sender; | |
- (IBAction)endView:(UIButton *)sender; | |
@property (weak, nonatomic) IBOutlet UIWebView *webView_A; | |
- (IBAction)startView_A:(UIButton *)sender; |
NewerOlder