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 step01; | |
//import java.awt.Graphics; | |
import java.awt.Graphics; | |
//import java.util.Random; | |
import java.util.Random; | |
/************************************************** | |
* SortPanel.java | |
* ------------------------------ |
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
val kodein = Kodein{ | |
constant("koya") with 10 | |
constant("shujin") with "Hunachi marunosuke" | |
} |
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
~:google-home-notifier hunachi$ node main.js | |
Endpoints: | |
https://c3e9c750.ngrok.io/google-home-notifier | |
GET example: | |
curl -X GET https://c3e9c750.ngrok.io/google-home-notifier?text=Hello+Google+Home | |
POST example: | |
curl -X POST -d "text=Hello Google Home" https://c3e9c750.ngrok.io/google-home-notifier | |
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
/* | |
* $ node main.js | |
* */ | |
const express = require('express'); | |
const googlehome = require('./google-home-notifier'); | |
const schedule = require("node-schedule"); | |
const ngrok = require('ngrok'); | |
const bodyParser = require('body-parser'); | |
const app = express(); | |
const serverPort = 8091; // default port |
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
🐝bug発見 | |
🐣bug取った | |
🍊機能追加 | |
🍎函数追加 | |
🍏ちょっとした改善 | |
🦁大きな改善 | |
🍩classやinterfaceの追加 | |
✏️xmlの変更 | |
❤️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
Glide.with(activity).load(url).into(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
#include<bits/stdc++.h> | |
#define int long long | |
#define rep(a,b,c) for(int a=b;a<c;a++) | |
#define repm(a,b,c) for(int a=(b-1);a>=c;a--) | |
#define pb push_back | |
#define str string | |
#define sf(a) scanfs("%d",&a) | |
#define pf(a) printf("%d\n",a) | |
#define pb push_back |
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
static const int MAX_N = 200002; | |
struct Seg{ | |
int n; | |
int dat[MAX_N * 2]; | |
void init(int n_){ | |
init(n_ , INF); | |
} |
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
struct{ | |
void dijkstra(int s){ | |
priority_queue<pii, vector<pii>, greater<pii> > que; | |
fill(d,d+V,INF); | |
d[s] = 0; | |
que.push(pii(0,s)); | |
while(!que.empty()){ | |
pii p = que.top(); que.pop(); | |
int v = p.second; | |
if (d[v] < p.first) continue; |
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
void Main() | |
{ | |
Image image(Window::Size(), Palette::White); | |
DynamicTexture texture(image); | |
while (System::Update()) | |
{ | |
if (Input::MouseL.pressed) | |
{ |