This file contains hidden or 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
(load "YacqOAuth") | |
(load "cts:System.Net") | |
;(createAuthorizationHeader "GET" (Uri "http://api.twitter.com/") "" "consumerKey" "consumerSecret" "token" "tokenSecret" HMAC-SHA1 "" "" Dictionary.[String String].(new)) | |
;.(ForEach (\ [kvp] | |
; (+ kvp.Key " = " kvp.Value).(print) | |
;)) | |
;.(print) | |
($ |
This file contains hidden or 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
string ExpandUstreamUri(string uri) | |
{ | |
const string alphabet = "0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ"; | |
var id = uri.TrimStart("http://ustre.am/".ToArray()); | |
return "http://www.ustream.tv/channel/id/" + | |
id.Reverse() | |
.Select((c, i) => Math.Pow(alphabet.Length, i) * alphabet.IndexOf(c)) | |
.Sum(); | |
} |
This file contains hidden or 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
=== ログ開始: 2012/09/28 23:18:12 === | |
アクション 23:18:12: INSTALL。 | |
アクション開始 23:18:12: INSTALL。 | |
アクション 23:18:12: FindRelatedProducts。関連するアプリケーションを検索しています | |
アクション開始 23:18:12: FindRelatedProducts。 | |
FindRelatedProducts: 見つかったアプリケーション: {4EDFDDC4-B4CC-45D2-99AD-D5A0B7135E3D} | |
アクション終了 23:18:12: FindRelatedProducts。 戻り値 1。 | |
アクション 23:18:12: PrepareDlg。 | |
アクション開始 23:18:12: PrepareDlg。 | |
情報 2898。For WixUI_Font_Normal textstyle, the system created a 'Tahoma' font, in 128 character set, of 13 pixels height. |
This file contains hidden or 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 -*- | |
import MySQLdb | |
from wop_core import * | |
class MySqlWrapping: | |
def __init__(self): | |
self.db = MySQLdb.connect(user = db_name, passwd = db_password, db = db_name, charset = "utf8") | |
self.c = db.cursor() |
This file contains hidden or 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
using System; | |
using System.ComponentModel; | |
using System.Linq; | |
using System.Runtime.InteropServices; | |
namespace StrConvInCSharp | |
{ | |
public static class MapStringExWrapper | |
{ | |
[DllImport("Kernel32", CharSet = CharSet.Unicode, SetLastError = true, CallingConvention = CallingConvention.Cdecl)] |
This file contains hidden or 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
package net.azyobuzi.saostar.util; | |
import java.util.HashSet; | |
public class Notificator | |
{ | |
private HashSet<Action> handlers = new HashSet<Action>(); | |
public void add(Action handler) | |
{ |
This file contains hidden or 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
using System; | |
using System.ComponentModel; | |
using System.Linq; | |
using System.Runtime.InteropServices; | |
using System.Text; | |
namespace StrConvInCSharp | |
{ | |
public static class MapStringExWrapper | |
{ |
This file contains hidden or 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
(load "cts:System.Linq.Expressions") | |
(load "cts:XSpect.Yacq.Symbols") | |
(load "cts:XSpect.Yacq.Expressions") | |
$global.(Add DispatchTypes.Method "assemblyfile" (\ [e s t] | |
Expression.(Constant | |
(type "System.Reflection.Assembly").(LoadFrom | |
e.Arguments.[0].(reduce).(to ConstantExpression).Value.(ToString) | |
) | |
) |
This file contains hidden or 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
#!/virtual/azyobuzin/local/bin/python | |
# -*- coding: utf-8 -*- | |
import cgitb | |
cgitb.enable() | |
import sys | |
sys.path.append("resolvers") | |
import cookielib |
This file contains hidden or 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
using System; | |
using System.Linq; | |
using System.Net; | |
using System.Text.RegularExpressions; | |
namespace KillmebabyIconDownloader | |
{ | |
class Program | |
{ | |
static void Main(string[] args) |