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
| function Ref(...args){ | |
| if(!(this instanceof Ref)) return new Ref(...args) | |
| this.fragment = this.constructor.merge(...args) | |
| } | |
| Object.assign(Ref, { | |
| _(fragment){ | |
| var ref = new this | |
| ref.fragment = fragment | |
| return ref |
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
| private void button_Click_1(object sender, RoutedEventArgs e) | |
| { | |
| var selection = new Dialog().show("うぃんどうたいとる", "ああああああい\nいいいいいいいいい\nうううううううううううう\nnagaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaai-text\n123", new List<string> | |
| { | |
| "ボタン01", "ボタン02", "ボタン03", | |
| "ボタン04", "ポタン05", "ボタン06", | |
| "ボタン07", "ボタン08", "ボタン09", | |
| "ボタン10", "ボタン11", "ボタン12", | |
| }); | |
| Console.WriteLine(selection); |
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.Dynamic; | |
| using System.Linq; | |
| using System.Text; | |
| using System.Threading.Tasks; | |
| namespace liblib | |
| { | |
| class MutableAnonymousObject : DynamicObject |
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
| function getDirectoryTree(start_dirpath, {dir = true, file = true, max_depth = -1, flatten = false} = {}){ | |
| const tree = {} | |
| dir = !!dir | |
| file = !!file | |
| max_depth = ~~max_depth | |
| flatten = !!flatten | |
| !function recur(dirpath, store, depth){ | |
| if(depth > max_depth && max_depth >= 0) 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
| body{ | |
| margin: 0; | |
| } | |
| .droparea{ | |
| all: initial; | |
| position: fixed; | |
| z-index: 1000; | |
| width: 100%; | |
| height: 100%; | |
| box-sizing: border-box; |
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; | |
| using System.Collections.Generic; | |
| using System.Linq; | |
| using System.Reflection; | |
| using System.Text.RegularExpressions; | |
| namespace liblib | |
| { | |
| public static class EvalExtension |
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.Linq; | |
| using System.Text; | |
| using System.Threading; | |
| using System.Threading.Tasks; | |
| using System.Windows; | |
| using System.Windows.Controls; | |
| using System.Windows.Data; | |
| using System.Windows.Documents; |
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; | |
| namespace liblib.wpf | |
| { | |
| [AttributeUsage(AttributeTargets.Property)] | |
| public class AutoValidateTarget : Attribute | |
| { | |
| } | |
| } |
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 | |
| function startsWith($str, $substr){ | |
| return (bool)preg_match("/^{$substr}/", $str); | |
| } | |
| function endsWith($str, $substr){ | |
| return (bool)preg_match("/{$substr}$/", $str); | |
| } |
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.Reflection; | |
| namespace liblib | |
| { | |
| public static class ReflectionExtension | |
| { | |
| /// <summary> | |
| /// ReflectionExtension でのエラー | |
| /// </summary> |