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
{
"manifest_version": 2,
"name": "Dummy Extension",
"version": "1.0",
"background": {
"page": "background.html"
},
"permissions": [
"activeTab",
"alarms",
@mayuki
mayuki / Program.cs
Created January 14, 2016 12:22
ChakraCore Sample
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using ChakraHost.Hosting;
namespace ConsoleApplication2
{
class Program
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading;
using UnityEditor;
namespace Unity.Assets.Editor
{
public class AnytimeHoldOn
@mayuki
mayuki / test.scss
Created July 25, 2014 08:55
node-sass 0.9.3でコンパイルできないScssファイル
%base {
input[type=text] {
color: red;
}
}
.class-01 {
@extend %base;
input[type=text] {
@mayuki
mayuki / gist:4e731ccb7df322ad9180
Created June 15, 2014 12:28
.NET Native Debug Output
'App4.Windows.exe' (Win32): Loaded 'C:\Users\Tomoyo\Documents\Visual Studio 2013\Projects\App4\App4\App4.Windows\bin\x64\Debug\AppX\App4.Windows.exe'. Module was built without symbols.
'App4.Windows.exe' (Win32): Loaded 'C:\Windows\System32\ntdll.dll'. Skipped loading symbols. Module is native, and native debugging is currently disabled.
'App4.Windows.exe' (Win32): Loaded 'C:\Windows\System32\kernel32.dll'. Skipped loading symbols. Module is native, and native debugging is currently disabled.
'App4.Windows.exe' (Win32): Loaded 'C:\Windows\System32\KernelBase.dll'. Skipped loading symbols. Module is native, and native debugging is currently disabled.
'App4.Windows.exe' (Win32): Loaded 'C:\Users\Tomoyo\Documents\Visual Studio 2013\Projects\App4\App4\App4.Windows\bin\x64\Debug\AppX\mrt100_app.dll'. Skipped loading symbols. Module is native, and native debugging is currently disabled.
'App4.Windows.exe' (Win32): Loaded 'C:\Windows\System32\combase.dll'. Skipped loading symbols. Module is native, and native debugg
C:\>type Get-Hoge.ps1
$args | %{ Write-Host $_ }
C:\>powershell -File Get-Hoge.ps1 "foo bar" "hauhau maumau"
foo bar
hauhau maumau
C:\>powershell -Command "&{ $args | %{ Write-Host $_ } }" "foo bar" "hauhau maumau"
foo
bar
<!DOCTYPE html>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width">
<title>HTMLOptionElement: 全角スペース</title>
<script>
function showText() {
var E = document.querySelector('option');
alert([
'E.text: ' + E.text,
'E.textContent: ' + E.textContent,
@mayuki
mayuki / gist:3864931
Created October 10, 2012 11:26
リソースファイルをひねり出す。
dir -r *.resx | %{ $xmldoc = [xml](Get-Content $_); $xmldoc.root.data | ?{ -not [System.String]::IsNullOrWhiteSpace($_.name)} | %{ $_.value = ("[EN]" + $_.value + "[/EN]") }; $xmldoc.Save($_.FullName.Substring(0,$_.FullName.Length-4)+"en.resx") }
@mayuki
mayuki / Web.config
Created April 3, 2012 14:38
Web.config
<?xml version="1.0" encoding="utf-8"?>
<!--
ASP.NET アプリケーションの構成方法の詳細については、
http://go.microsoft.com/fwlink/?LinkId=152368 を参照してください
-->
<configuration>
<system.webServer>
<serverSideInclude ssiExecDisable="true" />
@mayuki
mayuki / Program.cs
Created January 22, 2012 08:46
Get Display Size
using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.InteropServices;
using System.Text;
using System.Threading.Tasks;
namespace ConsoleApplication1
{
class Program