https://esa-pages.io/p/sharing/3030/posts/15/3ad4df666a5dc2e92e52.html
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/bin/env ruby | |
# coding:utf-8 | |
require 'sinatra' | |
require 'rack' | |
get '/*' do | |
status 503 | |
return "ただいまアクセスが集中しているため、サイトが繋がりづらい状態になっています。 ご迷惑をおかけして申し訳ありません。" | |
end |
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 <stdio.h> | |
#include <math.h> | |
#define N 500 | |
int main(void){ | |
int i, j, n, nend; | |
double xleft, xright, yleft, yright; | |
double x[N+1], dx, xx[N+1], y[N+1], dy, yy[N+1]; | |
double u[N+1][N+1], uu[N+1][N+1], s[N+1][N+1]; | |
double c1, c2, t, dt, tend; |
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 <stdio.h> | |
#include <math.h> | |
#include <time.h> | |
#include <stdlib.h> | |
int c1_size = 0; | |
int c2_size = 0; | |
int c_test_size = 0; | |
int dim = 2; |
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
// Main.java | |
public class Main { | |
public static void main(String[] args) { | |
System.out.println("----- BFS -----"); | |
BFS bfs = new BFS(); | |
bfs.search(); | |
Graph.printCourse(bfs.getCourse()); | |
System.out.println("----- DFS -----"); |
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
android { | |
... | |
dataBinding { | |
enabled = true | |
} | |
... | |
} |
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
<?xml version="1.0" encoding="utf-8"?> | |
<layout | |
xmlns:android="http://schemas.android.com/apk/res/android" | |
xmlns:tools="http://schemas.android.com/tools" | |
xmlns:app="http://schemas.android.com/apk/res-auto" | |
> | |
<data> | |
<variable | |
name="activity" |
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
public class MainActivity extends AppCompatActivity { | |
User mUser; | |
@Override | |
protected void onCreate(Bundle savedInstanceState) { | |
super.onCreate(savedInstanceState); | |
setContentView(R.layout.activity_main); | |
ActivityMainBinding binding = DataBindingUtil.setContentView(this, R.layout.activity_main); |
NewerOlder