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 gcpslog | |
import ( | |
"context" | |
"fmt" | |
"golang.org/x/exp/slog" | |
"io" | |
"os" | |
"runtime" | |
"strconv" |
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 net.vvakame.sample; | |
import java.io.BufferedReader; | |
import java.io.IOException; | |
import java.io.InputStream; | |
import java.io.InputStreamReader; | |
import java.util.ArrayList; | |
import java.util.List; | |
import java.util.regex.Matcher; | |
import java.util.regex.Pattern; |
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 net.vvakame.sapmle; | |
import java.util.List; | |
import android.content.Context; | |
import android.content.pm.ApplicationInfo; | |
import android.content.pm.PackageManager; | |
import android.util.Log; | |
import android.view.ActionProvider; | |
import android.view.Menu; |
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
// 参考 http://d.hatena.ne.jp/azukinohiroki/20120628/1340868610 | |
package net.vvakame.gcmsample; | |
import java.io.IOException; | |
import java.util.ArrayList; | |
import java.util.List; | |
import org.apache.http.NameValuePair; | |
import org.apache.http.client.ClientProtocolException; |
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 packman; | |
import static packman.Game.*; | |
import java.io.File; | |
import java.io.IOException; | |
import java.util.ArrayDeque; | |
import java.util.Arrays; | |
import java.util.Queue; |
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 https://blog.apollographql.com/three-ways-to-represent-your-graphql-schema-a41f4175100d | |
// https://blog.apollographql.com/modularizing-your-graphql-schema-code-d7f71d5ed5f2 | |
const fs = require("fs"); | |
const glob = require("glob"); | |
const { graphqlSync, getIntrospectionQuery } = require("graphql"); | |
const { makeExecutableSchema } = require("graphql-tools"); | |
const typeDefs = glob | |
.sync("../graphql/*.graphql") |
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
var http = require("https"); | |
var qs = require('querystring'); | |
var Pusher = require('pusher-client'); | |
var urlBase = "https://idobata.io"; | |
var token = "xxxxx"; // ここにBOTのtokenいれる | |
var pusherKey = "44ffe67af1c7035be764"; | |
function request(method, path, params) { |
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 { createStore, applyMiddleware, combineReducers } from "redux"; | |
import thunk from "redux-thunk"; | |
import { userReducer, UserAction, UserState } from "./user"; | |
import { handshakeReducer, HandShakeAction, HandshakeState } from "./handshake"; | |
import { productInfoReducer, ProductInfoAction, ProductInfoState } from "./product"; | |
import { circleReducer, CircleAction, CircleState } from "./circle"; | |
export const store = createStore(combineReducers({ | |
user: userReducer, |
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
using System; | |
using System.IO; | |
using System.Text; | |
using System.Net; | |
using System.Net.Sockets; | |
namespace Mti | |
{ | |
class HttpServer | |
{ |
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
aaa |
NewerOlder