Skip to content

Instantly share code, notes, and snippets.

Avatar
🍣
時すでに - That sushi has sailed.

Mayuki Sawatari mayuki

🍣
時すでに - That sushi has sailed.
View GitHub Profile
View manifest.json
{
"manifest_version": 2,
"name": "Dummy Extension",
"version": "1.0",
"background": {
"page": "background.html"
},
"permissions": [
"activeTab",
"alarms",
@mayuki
mayuki / Program.cs
Created Jan 14, 2016
ChakraCore Sample
View Program.cs
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using ChakraHost.Hosting;
namespace ConsoleApplication2
{
class Program
View AnytimeHoldOn.cs
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 Jul 25, 2014
node-sass 0.9.3でコンパイルできないScssファイル
View test.scss
%base {
input[type=text] {
color: red;
}
}
.class-01 {
@extend %base;
input[type=text] {
@mayuki
mayuki / gist:4e731ccb7df322ad9180
Created Jun 15, 2014
.NET Native Debug Output
View gist:4e731ccb7df322ad9180
'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
View gist:4584325
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
View gist:3898650
<!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 Oct 10, 2012
リソースファイルをひねり出す。
View gist:3864931
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") }
View 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 Jan 22, 2012
Get Display Size
View Program.cs
using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.InteropServices;
using System.Text;
using System.Threading.Tasks;
namespace ConsoleApplication1
{
class Program