This file contains 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
//(function main(){ | |
var mouseStatus = { down: false, grag: false }; | |
var canvasWidth, canvasHeight; | |
var tmpImage, stackImage = [], current = 0; // undo, redo用 | |
var saved = true; // 画像保存フラグ | |
var wrapper = document.createElement("div"); | |
wrapper.id = "canvas-overlay-wrapper"; | |
document.body.insertBefore(wrapper, document.body.firstChild); |
This file contains 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
<?xml version="1.0"?> | |
<?xml-stylesheet type="text/xsl" href="res/loginform.xsl"?> | |
<request to="(input here URL to send request)"> | |
<param name="mail" value="foo%40bar.com"/> | |
<param name="pass" value="this_is_password"/> | |
<param name="login" value="true"/> | |
</request> |
This file contains 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
window.DOMStringMap || Object.defineProperty(Element.prototype, "dataset", { | |
enumerable: false, | |
configurable: false, | |
get: function(){ | |
var dataset = {}; | |
Array.prototype.slice.call(this.attributes) | |
.filter(function(val){ | |
return val.name.indexOf("data-") === 0; | |
}).forEach(function(val){ | |
var property = val.name.slice(5); |
This file contains 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.IO; | |
using System.Reflection; | |
using System.Xml.Serialization; | |
namespace MusicBeePlugin | |
{ | |
public class ConfigBase | |
{ | |
/// <summary> |
This file contains 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
!Number.prototype.padLeft && Object.defineProperty(Number.prototype, "padLeft", { | |
value(n, s = " ") { | |
return (Array(n).join(s) + this).slice(-n); | |
} | |
}); | |
main(); | |
function main() { | |
const now = new Date; |
This file contains 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
"use strict"; | |
for (let i of fib(10)) { | |
console.log(i); | |
} | |
function* fib(num) { | |
let [prev, curr] = [0, 1]; | |
for (let i = 0; i < num; ++i) { |
This file contains 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
fib = n -> | |
[p, c] = [0, 1] | |
for i in [0..(n - 1)] | |
[p, c] = [c, p + c] | |
yield c | |
for i of fib 10 | |
console.log i |
This file contains 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
declare namespace Ancia { | |
interface App { | |
/** | |
* 現在アクティブなTabオブジェクトを返却します。 | |
*/ | |
activeTab: Tab; | |
/** | |
* 現在のタブの数を返却します。 | |
*/ |
This file contains 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.IO; | |
using System.Net; | |
using System.Runtime.Serialization.Formatters.Binary; | |
using System.Threading.Tasks; | |
using System.Windows.Forms; | |
namespace WindowsFormsApplication1 | |
{ | |
public partial class Form1 : Form |
This file contains 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.Runtime.InteropServices; | |
class Program | |
{ | |
static void Main(string[] args) | |
{ | |
string str = "ABCDEabcde01234ひらがなカタカナ漢字", newstr1, newstr2; | |
IntPtr ptr = Marshal.StringToHGlobalUni(str); |
OlderNewer