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
.* | |
!/.gitignore |
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
!/.gitignore | |
.* |
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
#!/bin/bash | |
COMMAND='/usr/local/src/certbot/certbot-auto renew --force-renew --non-interactive' | |
LOG=/var/log/letsencrypt/renew.log | |
date '+%Y-%m-%d %H:%M:%S >>>' >> $LOG | |
if ! $COMMAND >> $LOG 2>&1 ; then | |
echo ' Automated renewal failed' >> $LOG | |
exit 1 | |
fi |
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 | |
$button = 0; | |
// ボタンを押す。 | |
$button = $button ^ 1; | |
// 1になる。 | |
print 'ボタンの状態:' . $button . "\n"; |
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 | |
// 2進数へ。 | |
echo myAssertEquals('10100', changeDecimalToBaseN(20, 2)) . "\n"; | |
// 8進数へ。 | |
echo myAssertEquals('24', changeDecimalToBaseN(20, 8)) . "\n"; | |
// 16進数へ。 | |
echo myAssertEquals('14', changeDecimalToBaseN(20, 16)) . "\n"; |
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
●リスト1――カリー化する前の例 | |
object myapp { | |
def main(args: Array[String]) = { | |
println("100から200までの合計:" + total(100, 200)) | |
} | |
def total(min: Int, max: Int) = { | |
var res:Int = 0 | |
for(n:Int <- Range(min,max + 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
import java.util._ | |
object myapp { | |
//メソッド | |
def total(num: Int) = { | |
var res:Int = 0 | |
for(n:Int <- Range(1,num + 1)) | |
res += n | |
res |
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
/// <reference path="typings/angular2/angular2.d.ts" /> | |
import {Component, View, bootstrap} from 'angular2/angular2'; | |
// Annotation section | |
@Component({ | |
selector: 'my-app' | |
}) | |
@View({ |
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
<!-- hello.html --> | |
<html> | |
<head> | |
<title>Angular 2 Quickstart</title> | |
<script src="https://github.jspm.io/jmcriffey/bower-traceur-runtime@0.0.87/traceur-runtime.js"> | |
</script> | |
<script src="https://jspm.io/system@0.16.js"> | |
</script> | |
<script src="https://code.angularjs.org/2.0.0-alpha.23/angular2.dev.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
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<script type="text/javascript"> | |
<!-- | |
var baseUrl = '{{BaseController::getBaseUrl()}}'; |