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
var data = { image: "image.jpg", text: "text..." }; | |
var popup = webkitNotifications.createHTMLNotification( | |
'notification.html#' + encodeURIComponent(JSON.stringify(data)) ); |
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/bash | |
prgfile=<Program Script filepath> | |
pidfile=<PID filepath> | |
start() { | |
if [ -f $pidfile ]; then | |
pid=`cat $pidfile` | |
kill -0 $pid >& /dev/null | |
if [ $? -eq 0 ]; then |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta name="viewport" content="width=device-width, initial-scale=0.8, user-scalable=yes" /> | |
<title>UIColorSelector</title> | |
<style type="text/css"> | |
<!-- | |
body, input { font-size:12pt } | |
input[type="range"] { width:256px; } | |
th, td { |
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/bash | |
S3Buckets=("us-west1" "us-east1" "singapore") | |
MaxAge=7 | |
epochsec=`date +"%s"` | |
epochday=$((epochsec / 86400)) | |
dayidx=$((epochday % MaxAge)) | |
bknum=${#S3Buckets[@]} |
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 | |
### BEGIN INIT INFO | |
# Provides: mongod | |
# Required-Start: $remote_fs $syslog | |
# Required-Stop: $remote_fs $syslog | |
# Default-Start: 2 3 4 5 | |
# Default-Stop: 0 1 6 | |
# Short-Description: Start mongod at boot time | |
# Description: Enable service provided by mongod. |
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
{ | |
"rate_limit_context" = { | |
application = XXXXXXXXXXXXXXXXXXX; | |
}; | |
resources = { | |
search = { | |
"/search/tweets" = { | |
limit = 450; | |
remaining = 450; | |
reset = 1384594997; |
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)testAsnchronouseRequest | |
{ | |
[[MyAPIClient sharedClient] post:url params:@{ @"name": @"Taro", @"age": @"30" }, completion:^(NSDictionary *json, NSError *error) | |
{ | |
NSDictionary *query = json[@"query"]; | |
NSDictionary *body = json[@"body"]; | |
XCTAssertNotNil(query[@"json"]); | |
XCTAssertEqualObjects(body[@"name"], @"Taro"); | |
XCTAssertEqualObjects(body[@"age"], @"30"); |
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
66.35.64.34 2217 - | |
2014-02-10T11:49:12+09:00 200 /?_SERVER[DOCUMENT_ROOT]=http://www.google.com/humans.txt? - | |
2014-02-10T11:49:12+09:00 404 /0_admin/modules/Wochenkarte/frontend/index.php?x_admindir=http://www.google.com/humans.txt? - | |
2014-02-10T11:49:13+09:00 404 /123flashchat.php?e107path=http://www.google.com/humans.txt? - | |
2014-02-10T11:49:13+09:00 404 /2007/administrator/components/com_joomlaflashfun/admin.joomlaflashfun.php?mosConfig_live_site=http://www.google.com/humans.txt? - | |
2014-02-10T11:49:14+09:00 404 /22_ultimate/templates/header.php?mainpath=http://www.google.com/humans.txt? - | |
2014-02-10T11:49:14+09:00 404 /=http://www.google.com/humans.txt? - | |
2014-02-10T11:49:15+09:00 200 /?_CONFIG[files][functions_page]=http://www.google.com/humans.txt? - | |
2014-02-10T11:49:15+09:00 200 /?npage=-1&content_dir=http://www.google.com/humans.txt?%00&cmd=ls - | |
2014-02-10T11:49:16+09:00 200 /?npage=1&content_dir=http://www.google.com/humans.txt?%00&cmd=ls - |
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 | |
# | |
# Sending Munin Alert to hipchat | |
# | |
require 'hipchat-api' | |
# | |
# Settings |
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 Function ExportDatabaseSources(exportDir As String) As Boolean | |
On Error GoTo ErrHandler: | |
Dim db, td, d, c | |
Dim strRootPath As String | |
Set db = Application.CurrentDb | |
strRootPath = exportDir & "\" | |
If Len(Dir(strRootPath, vbDirectory)) = 0 Then |
OlderNewer