Skip to content

Instantly share code, notes, and snippets.

Avatar
🏠
Working from home

amay077 amay077

🏠
Working from home
View GitHub Profile
View gist:28118c56e008c592a361
// ネットに接続されてる間はtrueとか
var connected = new BooleanNotifier();
// ダウンロード中はtrueとか
var downloading = new BooleanNotfier();
var command = new[]
{
connected,
downloading.Select(x => !x)
}
@mpen
mpen / ApacheHttpClientGet2.scala
Created Oct 30, 2009
Apache HttpComponents HttpClient Get ResponseHandler
View ApacheHttpClientGet2.scala
// Apache HttpComponents HttpClient Get ResponseHandler
import java.io.File
import java.io.IOException
import java.net.URI
import java.net.URISyntaxException
import java.net.URLDecoder
import java.net.UnknownHostException
import org.apache.commons.io.FileUtils
import org.apache.commons.io.FilenameUtils
@azyobuzin
azyobuzin / Program.cs
Created Feb 20, 2017
Xamarin の base メソッドを呼ばなければいけない/呼んではいけない奴を抽出
View Program.cs
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text.RegularExpressions;
using System.Xml;
using System.Xml.Linq;
using Mono.Cecil;
using Mono.Cecil.Cil;
using Mono.Cecil.Rocks;
@smallgeek
smallgeek / BusyNotifierCommand.cs
Created Apr 28, 2017
2度押し防止コマンド試作
View BusyNotifierCommand.cs
using Reactive.Bindings.Notifiers;
using System;
using System.Threading.Tasks;
using System.Windows.Input;
namespace Reactive.Bindings
{
public class BusyNotifierCommand : BusyNotifierCommand<object>
{
public BusyNotifierCommand(Func<Task> execute)
@mbostock
mbostock / .block
Last active Jul 20, 2017
Circle-Polygon Intersection
View .block
license: gpl-3.0
@k-kagurazaka
k-kagurazaka / Main.kt
Last active Dec 20, 2017
RxCommand with double context extension pattern
View Main.kt
interface HasDisposables {
fun Disposable.autoDispose()
fun dispose()
companion object {
operator fun invoke(): HasDisposables = object : HasDisposables {
private val disposables = CompositeDisposable()
View minimum-react.html
<div id=root />
<script type=module>
import React from 'https://dev.jspm.io/react@16'
import ReactDOM from 'https://dev.jspm.io/react-dom@16'
ReactDOM.render(
React.createElement('h1', null, 'hello'),
document.querySelector('#root')
)
</script>
@rudyryk
rudyryk / CustomTableViewRenderer.cs
Created Aug 3, 2015
C# — Custom Xamarin.Forms renderer for TableView to hide empty cells at the bottom
View CustomTableViewRenderer.cs
// NoEmptyRowsTableViewRenderer.cs
//
// No Rights Reserved
// http://creativecommons.org/publicdomain/zero/1.0/
//
// Assume you have `MyProject.MyTableView` sublass of
// `Xamarin.Forms.TableView` and want to hide extra
// empty rows at the bottom. All you need on iOS is to set
// `TableFooterView` to empty `UIView` in custom renderer.
//
@koral--
koral-- / ImageCaptureHelper.java
Last active Jan 16, 2019
Helper for sending ACTION_IMAGE_CAPTURE intent and retrieve its results. Handles all low level operations
View ImageCaptureHelper.java
//MIT License
//Copyright (c) 2015 Karol Wrótniak, Droids On Roids
package pl.droidsonroids.imagehelpers;
import java.io.File;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
import android.app.Activity;
import android.content.ActivityNotFoundException;
import android.content.ContentResolver;
@stoshiya
stoshiya / selenium chrome.md
Last active Jun 7, 2019
MacでSeleniumをつかってChromeを起動するまで
View selenium chrome.md

MacでSeleniumをつかってChromeを起動するまで

必要なもの

  • Mac OS X
  • Google Chrome
  • Homebrew
  • Node.js
  • selenium-server-standalone
  • chromedriver