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 groovy.xml.MarkupBuilder | |
apply plugin: "java" | |
apply plugin: "war" | |
apply plugin: "eclipse" | |
// maven-publish, maven2Gradle, build-dashboard | |
// checkstyle, findbugs, jdepend, pmd |
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
package org.sinmetal.xgtx; | |
import java.io.IOException; | |
import java.util.ConcurrentModificationException; | |
import javax.servlet.http.HttpServlet; | |
import javax.servlet.http.HttpServletRequest; | |
import javax.servlet.http.HttpServletResponse; | |
import com.google.appengine.api.datastore.DatastoreService; |
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="ja" ng-app="myApp"> | |
<head> | |
<meta charset="utf-8"> | |
<title>sample</title> | |
<link rel="stylesheet" href="../static/stylesheets/bootstrap.min.css"> | |
<link rel="stylesheet" href="../static/stylesheets/bootstrapSwitch.css"> | |
</head> | |
<body> | |
<div class="row-fluid" ng-controller="mainCtrl"> |
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
package org.sinmetal.appengine.sample.model.gcs; | |
import org.slim3.datastore.Attribute; | |
import org.slim3.datastore.Datastore; | |
import org.slim3.datastore.Model; | |
import com.google.appengine.api.datastore.Key; | |
@Model(schemaVersionName = "schemaVersion", schemaVersion = 1) | |
public class FileInfo { |
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
package org.sinmetal.http; | |
import java.io.*; | |
import java.net.*; | |
/** | |
* 簡易HTTPサーバ | |
* | |
*/ | |
public class Server { |
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
package org.sinmetal.controller; | |
import javax.servlet.http.HttpServletResponse; | |
import org.slim3.controller.Navigation; | |
import org.slim3.controller.SimpleController; | |
import com.google.appengine.api.memcache.MemcacheService; | |
import com.google.appengine.api.memcache.MemcacheService.IdentifiableValue; | |
import com.google.appengine.api.memcache.MemcacheServiceFactory; |
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
SELECT | |
year, month, day, | |
count(text) AS count | |
FROM | |
( | |
SELECT | |
YEAR(DATE_ADD (createdAt, 9, "HOUR")) AS year, | |
MONTH(DATE_ADD (createdAt, 9, "HOUR")) AS month, | |
DAY(DATE_ADD (createdAt, 9, "HOUR")) AS day, | |
text |
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
#!/usr/local/bin/zsh | |
while true; | |
do | |
curl $1 | |
sleep 1 | |
done |
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
package org.sinmetal.controller; | |
import java.io.*; | |
import java.util.*; | |
import java.util.logging.*; | |
import org.codehaus.jackson.*; | |
import org.codehaus.jackson.map.*; | |
import org.sinmetal.meta.*; | |
import org.sinmetal.model.*; |
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
SELECT | |
JSON_EXTRACT(protoPayload.line.logMessage, '$.__DS__KIND__PUGEVENT__.id') AS id, | |
JSON_EXTRACT(protoPayload.line.logMessage, '$.__DS__KIND__PUGEVENT__.organizationId') AS organizationId, | |
JSON_EXTRACT(protoPayload.line.logMessage, '$.__DS__KIND__PUGEVENT__.title') AS title, | |
JSON_EXTRACT(protoPayload.line.logMessage, '$.__DS__KIND__PUGEVENT__.description') AS description, | |
JSON_EXTRACT(protoPayload.line.logMessage, '$.__DS__KIND__PUGEVENT__.url') AS url, | |
JSON_EXTRACT(protoPayload.line.logMessage, '$.__DS__KIND__PUGEVENT__.startAt') AS startAt, | |
JSON_EXTRACT(protoPayload.line.logMessage, '$.__DS__KIND__PUGEVENT__.createdAt') AS createdAt, | |
JSON_EXTRACT(protoPayload.line.logMessage, '$.__DS__KIND__PUGEVENT__.updatedAt') AS updatedAt, | |
protoPayload.line.logMessage AS source |
OlderNewer