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
escape ^Z^Z | |
defscrollback 4096 | |
hardstatus on | |
hardstatus alwayslastline | |
caption always "%{.Kk}%?%F%{.KW}%?%n %t%=%?[%h]%?" | |
hardstatus string "%{.bW}%-w%{.rW}%n %t%{-}%+w %=%{..Y}[%y/%m/%d %c]" | |
defbce on | |
term xterm-256color | |
multiuser on | |
altscreen on |
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
#!/bin/sh | |
screen -q -ls | |
if [ $? -eq 9 -a -z "$STY" ]; then | |
exec screen -U | |
else | |
exec screen -UxRR | |
fi |
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
worker_processes 2 | |
working_directory "/var/www/default" | |
timeout 30 | |
listen "/tmp/unicorn.socket", :backlog => 64 | |
pid "logs/unicorn.pid" | |
stderr_path "logs/unicorn.log" | |
stdout_path "logs/unicorn.log" |
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
server { | |
listen 80; | |
server_name _; | |
access_log /var/log/nginx/access.log; | |
root /var/www/default/public; | |
location / { | |
try_files $uri/index.html @unicorn; | |
} |
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 <stdlib.h> | |
#include <stdio.h> | |
#include <string.h> | |
int main(int argc, char** argv) { | |
int max = -1; | |
int mb = 0; | |
char* buffer; | |
if(argc > 1) |
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
mkdir -p ~/Library/Application\ Support/LingrHat | |
echo '.message {font-size:14px !important;}' > ~/Library/Application\ Support/LingrHat/UserStyleSheet.css | |
echo 'textarea {font-size:14px !important;}' >> ~/Library/Application\ Support/LingrHat/UserStyleSheet.css | |
defaults write com.drikin.Lingr-Hat WebKitUserStyleSheetEnabledPreferenceKey -bool true | |
defaults write com.drikin.Lingr-Hat WebKitUserStyleSheetLocationPreferenceKey "~/Library/Application Support/LingrHat/UserStyleSheet.css" |
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
#-*- coding: utf-8 -*- | |
require 'rubygems' | |
require 'uri' | |
require 'digest/sha1' | |
require 'curb' | |
bot_id=BOT_ID | |
bot_secret=BOT_SECRET | |
sayroom=SAYROOM | |
text='post test' |
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
#-*- coding: utf-8 -*- | |
require 'digest/sha1' | |
require 'uri' | |
require 'rubygems' | |
require 'tweetstream' | |
require 'curb' | |
# --- settings --- | |
# lingr bot settings. | |
bot_id=BOT_ID |
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)webView:(WebView *)sender runJavaScriptAlertPanelWithMessage:(NSString *)message | |
{ | |
NSRunAlertPanel(@"JavaScript alert", message, @"OK", nil, nil); | |
} | |
- (BOOL)webView:(WebView *)sender runJavaScriptConfirmPanelWithMessage:(NSString *)message | |
{ | |
int choice = NSRunAlertPanel(@"JavaScript confirm", message, @"OK", @"Cancel", nil); | |
return choice == NSAlertDefaultReturn; | |
} |
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
<?php | |
$flag = 1; | |
if ( $flag ) { | |
echo "aki is fool."; | |
} else { | |
echo "aki is aho."; | |
} |
OlderNewer