Skip to content

Instantly share code, notes, and snippets.

View mayuki's full-sized avatar
🍣
時すでに - That sushi has sailed.

Mayuki Sawatari mayuki

🍣
時すでに - That sushi has sailed.
View GitHub Profile
@* コンパイル可能 *@
@if (true) {
<p>コンパイルOK</p>
}
@* コンパイルエラー *@
@if (true) {
@if (true) {
<p>コンパイルエラー</p>
}
function Hauhau() {
return
"Hauhau" +
"Gaogao"
;
}
alert(Hauhau()); // => "HauhauGaogao" ではない。
data:image/png;base64,iVBORw0KGgoAAAANSUhEUgABhp8AAAABAQMAAAD+SF0jAAAAB3RJTUUH2goHCxcF0aoqCQAAABd0RVh0U29mdHdhcmUAR0xEUE5HIHZlciAzLjRxhaThAAAACHRwTkdHTEQzAAAAAEqAKR8AAAAGUExURQAAAP///6XZn90AAAAkSURBVHja7cExAQAADAKg9Q/tbOEF3AMAAAAAAAAAAAAAAOyly6Wl/CU5lOkAAAAASUVORK5CYII=
<!DOCTYPE html>
<meta charset="UTF-8">
<title>JavaScript 文字列エスケープ</title>
<style>
textarea { width: 100%; }
.buttonArea { text-align:center }
</style>
<h1>JavaScript 文字列エスケープ</h1>
<div>
/*
* 90年代のWebをjQueryに。
*
* License: Public Domain
*
* Example:
* $('span').fontcolor('red')
* .fontsize(10)
* .blink()
* .big()
using System;
using System.Linq;
using System.Threading.Tasks;
namespace ConsoleApplication1
{
class Program
{
static void Main(string[] args)
{
<!DOCTYPE html>
<html xml:lang="ja" xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta charset="UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=EDGE" />
<title>jquery-template-test1</title>
<script type="text/javascript" src="http://ajax.microsoft.com/ajax/jQuery/jquery-1.4.2.min.js"></script>
<script type="text/javascript" src="http://github.com/nje/jquery-tmpl/raw/master/jquery.tmpl.js"></script>
<script type="text/javascript">
function render() {
function Get-CredentialForWeb()
{
$cred = $null
$cred = Get-Credential
if ($cred -ne $null) {
return New-Object System.Management.Automation.PSCredential($cred.UserName.Substring(1), $cred.Password)
}
}
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq.Expressions;
using System.Net;
using System.Text;
using System.Text.RegularExpressions;
using System.Web;
namespace TumblrBulkUploader
import clr
from System.Net import WebClient
from Misuzilla.Applications.TwitterIrcGateway import Status, Statuses, User, Users, Utility
from Misuzilla.Applications.TwitterIrcGateway.AddIns import IConfiguration
from Misuzilla.Applications.TwitterIrcGateway.AddIns.Console import ConsoleAddIn, Console, Context
from Misuzilla.Applications.TwitterIrcGateway.AddIns.DLRIntegration import DLRIntegrationAddIn, DLRBasicConfiguration, DLRContextHelper
# タイムラインをクライアントに送信する直前のイベントハンドラ
def OnPreSendMessageTimelineStatus(sender, e):
webClient = WebClient()