Skip to content
View symphony
composer create-project symfony/framework-standard-edition my_project_name
composer create-project symfony/framework-standard-edition my_project_name "2.3.*"
cd my_project_name/
php app/console server:run
php app/console server:stop
http://localhost:8000/config.php
composer update
php app/console security:check
symfony demo
View reveal
def reveal(pos)
tile = self[*pos]
return if tile.revealed
tile.revealed = true
if tile.value == 0
adjacent_squares(pos).each do |square|
neighbor_tile = self[*square]
reveal(square)
end
View test.rs
#![feature(collections)]
use std::collections::VecDeque;
fn main() {
let mut buf: VecDeque<i32> = VecDeque::new();
print!("{}", buf.capacity().to_string());
buf.push_back(1);
print!("{}", buf.capacity().to_string());
buf.reserve_exact(10);
View index.html
<i class="material-icons" id="openMenu">menu</i>
<div id="menu">
<ul>
<li><a href="#">item 1</a></li>
<li><a href="#">item 2</a></li>
<li><a href="#">item 3</a></li>
</ul>
</div>
View Glide-CircleImageView
import android.content.Context;
import android.graphics.Bitmap;
import android.graphics.BitmapShader;
import android.graphics.Canvas;
import android.graphics.ColorFilter;
import android.graphics.Paint;
import android.graphics.PixelFormat;
import android.graphics.Rect;
import android.graphics.Shader;
import android.graphics.drawable.Drawable;
View Wear_MTBF_150822_08_25_2015_1654.log
{"time":"2015-08-25T16:55:34-0700","log":"mainLoop::0::recentCall"}
{"time":"2015-08-25T16:55:34-0700","log":"05_01_01_03_Telephony::Start::recentCall::0"}
{"time":"2015-08-25T16:56:59-0700","log":"05_01_01_03_Telephony::Stop::Pass"}
{"time":"2015-08-25T16:57:03-0700","log":"05_01_01_03_Telephony::Start::recentCall::1"}
{"time":"2015-08-25T16:58:27-0700","log":"05_01_01_03_Telephony::Stop::Pass"}
{"time":"2015-08-25T16:58:32-0700","log":"05_01_01_03_Telephony::Start::recentCall::2"}
{"time":"2015-08-25T16:59:57-0700","log":"05_01_01_03_Telephony::Stop::Pass"}
{"time":"2015-08-25T17:00:02-0700","log":"05_01_01_03_Telephony::Start::recentCall::3"}
{"time":"2015-08-25T17:01:26-0700","log":"05_01_01_03_Telephony::Stop::Pass"}
{"time":"2015-08-25T17:01:31-0700","log":"05_01_01_03_Telephony::Start::recentCall::4"}
View README.md
View compile.sh
# compile command
python setup.py build_ext --inplace
View poj3484.md

Poj 3484: ShowStopper

題目

分析

這題不太容易看出來是二分搜…倒是更讓人想到利用 xor。這題另一個難點是 IO , 據說卡 cin/cout,還有這題的題目也不易讀懂啊。

Something went wrong with that request. Please try again.