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
<Image Name="PngImage" /> |
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
var apng = new APNG("a.png"); | |
var bitmaps = apng.ToBitmapSources(); | |
// Save to PNG files | |
foreach (var (bitmap, index) in bitmaps.Select((item, index) => (item, index))) | |
{ | |
using (var fileStream = new FileStream($"{index}.png", FileMode.Create)) | |
{ | |
var encoder = new PngBitmapEncoder(); | |
encoder.Frames.Add(BitmapFrame.Create(bitmap)); |
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
{ | |
"name": "Show Asset Widget", | |
"version": "1.0", | |
"manifest_version": 2, | |
"description": "Show Unity asset widget on Unity Affiliate reporting page.", | |
"content_scripts": [ | |
{ | |
"matches": [ | |
"https://console.partnerize.com/v2/reporting/perform", | |
"https://console.partnerize.com/v2/reporting/performance" |
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
const timer = setInterval(timer_tick, 500); | |
var prevId; | |
var div = document.createElement("div"); | |
var body = document.getElementsByTagName("body")[0]; | |
body.appendChild(div); | |
function timer_tick() { | |
var result = document.documentElement.innerHTML.match(/assetstore_package_(\d+)/); | |
if (!result) return; |
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
/********************************************************** | |
Save as PNGs.jsx | |
DESCRIPTION | |
This sample gets files specified by the user from the | |
selected folder and batch processes them and saves them | |
as PNGs in the user desired destination with the same | |
file name. |
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
<?php | |
$connectstr_dbhost = ''; | |
$connectstr_dbname = ''; | |
$connectstr_dbusername = ''; | |
$connectstr_dbpassword = ''; | |
foreach ($_SERVER as $key => $value) { | |
if (strpos($key, "MYSQLCONNSTR_") !== 0) { | |
continue; | |
} |
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.Collections.Generic; | |
using System.Globalization; | |
public class IrohaComparer : IComparer<string> | |
{ | |
private string iroha = "ィィぃイイいロロろハハはバばパぱニニにホホほボぼポぽヘヘへベべペぺトトとドどチチちヂぢリリりヌヌぬルルるヲヲをヺヮゎワワわヷヵゕカカかガがョョょヨヨよタタたダだレレれソソそゾぞッッっツツつヅづネネねナナなララらムムむゥゥぅウウうヴゔヰゐヸノノのォォぉオオおククくグぐャャゃヤヤやママまヶゖケケけゲげフフふブぶプぷココこゴごェェぇエエえテテてデでァァぁアアあササさザざキキきギぎュュゅユユゆメメめミミみシシしジじヱゑヹヒヒひビびピぴモモもセセせゼぜススすズずンンん"; | |
public int Compare(string x, string y) | |
{ |
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
class Program | |
{ | |
static void Main(string[] args) | |
{ | |
var names = new[] { | |
"あさみ りな", | |
"なみき なおと", | |
"いで なおと", | |
"はなおか なつき", | |
"まつうら やすふみ", |
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
Imports Microsoft.Office.Interop.PowerPoint | |
Public Class ThisAddIn | |
Private Sub Application_SlideShowNextSlide(Wn As SlideShowWindow) Handles Application.SlideShowNextSlide | |
Dim r = New Random | |
Dim s As System.IO.Stream | |
Select Case r.Next(0, 3) | |
Case 0 | |
s = My.Resources.camera_shutter_click_02 |
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
<html> | |
<head> | |
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"> | |
</head> | |
<body> | |
<table> | |
<tr> | |
<td>あいうえお</td> | |
<td>かきくけこ</td> | |
</tr> |