- はてなフォトライフ
- 携帯百景
- twitpic (死んだ)
- yfrog
- TweetPhoto (死んだ)
- plixi (死んだ)
- twipl (死んだ)
- フォト蔵
- ついっぷるフォト
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
public static T FindElement<T>(this DependencyObject rootElement, string name = null) | |
where T : DependencyObject | |
{ | |
var q = new Queue<DependencyObject>(); | |
q.Enqueue(rootElement); | |
while (q.Count != 0) | |
{ | |
var e = q.Dequeue(); | |
if (e is T && (name == null || !(e is FrameworkElement) || (e as FrameworkElement).Name == name)) return e as T; | |
if (e == null) continue; |
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
public class CachedValue<T> | |
{ | |
private bool _hasValue; | |
private T _value; | |
private Func<T> _getter; | |
public T Value => _hasValue ? _value : (_value = _getter()); | |
public CachedValue(Func<T> getter) |
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.Collections; | |
using System.Collections.ObjectModel; | |
using System.Collections.Specialized; | |
using System.ComponentModel; | |
using System.Linq; | |
using System.Reflection; | |
namespace XamlPullToRefresh | |
{ | |
public class ObservableCollectionEx<T> : ObservableCollection<T> |
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.Collections; | |
using System.Collections.Generic; | |
using System.IO; | |
using System.Text; | |
using App18; | |
namespace Ndef | |
{ | |
public class NdefRecord | |
{ |
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
#if WINDOWS_PHONE_APP | |
new FirstFloor.XamlSpy.XamlSpyService(this) | |
{ | |
RemoteAddress = "192.168.14.53", | |
RemotePort = 4530, | |
Password = "21612" | |
}.StartService(); | |
#endif |
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
RootFilter = new HttpBaseProtocolFilter(); | |
RootFilter.CacheControl.ReadBehavior = Windows.Web.Http.Filters.HttpCacheReadBehavior.MostRecent; | |
RootFilter.CacheControl.WriteBehavior = Windows.Web.Http.Filters.HttpCacheWriteBehavior.NoCache; | |
HttpClient = new HttpClient(RootFilter); |
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
static void Main(string[] args) | |
{ | |
var list = new List<string> | |
{ | |
"hoge", | |
"fuga", | |
"piyo", | |
"foo", | |
"hoge", | |
"bar", |
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
; scale windows store apps visual assets to each scale factor. | |
(define (uwp-scale-image-duplicate-scale-export inSaveTo inBaseName inImage inWidth inHeight inScaleFactor) | |
(define w (/ (* inWidth inScaleFactor) 100)) | |
(define h (/ (* inHeight inScaleFactor) 100)) | |
(define img (car (gimp-image-duplicate inImage))) | |
(define layer (car (vector->list (car (cdr (gimp-image-get-layers img)))))) | |
(define outFile (string-append inSaveTo "/" inBaseName ".scale-" (number->string inScaleFactor) ".png")) | |
(gimp-image-scale img w h) | |
(file-png-save2 1 img layer outFile outFile 0 9 1 0 0 0 0 0 0) |