Skip to content

Instantly share code, notes, and snippets.

#include <iostream>
#include <stack>
int main( int argc, const char* argv[] ) {
unsigned int x;
stack<int> bin;
// 接受任何一个无符号整数,直到 EOF 为止
while ( std::cin >> x ) {
// 把十进制数依次转化为二进制并压入栈内
while ( x != 0 ) {
@ybm
ybm / poem.pl
Created June 14, 2013 10:24
Perl 诗歌:情诗,致小星星
#!/usr/bin/perl
# love letter (a perl poem)
listen (to_me, please);
my ($dear, $little_star);
please:
`touch my heart`. open it, read it;
sort my @feelings, and pop @feelings;
@ybm
ybm / Custom.css
Created June 14, 2013 10:20
使用苹果丽黑字体 Hiragino Sans GB 的谷歌浏览器样式表
/** The Google Chrome Custom Style **/
body, div {font-family: "Hiragino Sans GB W3" !important;}
table, tbody, th, td {font-family: "Hiragino Sans GB W3" !important;}
h1, h2, h3, h4 ,h5, h6 {font-family: "Hiragino Sans GB W6" !important;}
ul, ol, li {font-family: "Hiragino Sans GB W3" !important;}
p, a, input {font-family: "Hiragino Sans GB W3" !important;}
#wrapper {font-family: "Hiragino Sans GB W3" !important;}
#content {font-family: "Hiragino Sans GB W3" !important;}
#containner {font-family: "Hiragino Sans GB W3" !important;}
@ybm
ybm / Default.ini
Last active August 25, 2016 07:00
MacType 配置文件
[General]
Name=Default
Icon=..\mactray.exe.ico,0
;【自动挂钩子进程】
;[0:Disable] 1:Enable
HookChildProcesses=1
;【字体微调】
;0:Normal 1:NoHinting 2:AutoHinting 3:Light+AutoHinting
@ybm
ybm / install.sql
Last active December 16, 2015 02:09
程序员问答网站的数据库安装文件
--
-- Table structure for table `users`
--
DROP TABLE IF EXISTS `users`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `users` (
`id` int(10) unsigned NOT NULL auto_increment,
@ybm
ybm / Custom.css
Last active December 14, 2015 15:09
Google Chrome User Style
/** The Google Chrome Custom Style **/
body, div {font-family: "Microsoft Yahei" !important;}
table, tbody, th, td {font-family: "Microsoft Yahei" !important;}
h1, h2, h3, h4 ,h5, h6 {font-family: "Microsoft Yahei" !important;}
ul, ol, li {font-family: "Microsoft Yahei" !important;}
p, a, input {font-family: "Microsoft Yahei" !important;}
#wrapper {font-family: "Microsoft Yahei" !important;}
#content {font-family: "Microsoft Yahei" !important;}
#containner {font-family: "Microsoft Yahei" !important;}