Skip to content

Instantly share code, notes, and snippets.

Working from home

amay077 amay077

Working from home
View GitHub Profile
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;
jimmgarrido /
Last active Dec 12, 2019
AdjustResize Workaround for Xamarin.Forms

Forms 2.3.3+

Uses the new Platform Specifics feature

protected override void OnCreate(Bundle bundle)
	ToolbarResource = Resource.Layout.toolbar;
	TabLayoutResource = Resource.Layout.tabs;

tonysneed / Mac OS X: Open in Visual Studio Code
Last active Mar 20, 2021
Add a command to Finder services in Mac OSX to open a folder in VS Code
View Mac OS X: Open in Visual Studio Code
- Open Automator
- File -> New -> Service
- Change "Service Receives" to "files or folders" in "Finder"
- Add a "Run Shell Script" action
- Change "Pass input" to "as arguments"
- Paste the following in the shell script box: open -n -b "" --args "$*"
- Save it as something like "Open in Visual Studio Code"
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
// 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.
View gist:28118c56e008c592a361
// ネットに接続されてる間はtrueとか
var connected = new BooleanNotifier();
// ダウンロード中はtrueとか
var downloading = new BooleanNotfier();
var command = new[]
downloading.Select(x => !x)
stoshiya / selenium
Last active Jun 7, 2019
View selenium



  • Mac OS X
  • Google Chrome
  • Homebrew
  • Node.js
  • selenium-server-standalone
  • chromedriver
branneman /
Last active Apr 16, 2021
Better local require() paths for Node.js

Better local require() paths for Node.js


When the directory structure of your Node.js application (not library!) has some depth, you end up with a lot of annoying relative paths in your require calls like:

const Article = require('../../../../app/models/article');

Those suck for maintenance and they're ugly.

Possible solutions

koral-- /
Last active Jan 16, 2019
Helper for sending ACTION_IMAGE_CAPTURE intent and retrieve its results. Handles all low level operations
//MIT License
//Copyright (c) 2015 Karol Wrótniak, Droids On Roids
package pl.droidsonroids.imagehelpers;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
import android.content.ActivityNotFoundException;
import android.content.ContentResolver;
devlights / ZipFileSamples04.cs
Created Jun 5, 2013
View ZipFileSamples04.cs
namespace Sazare.Samples
using System;
using System.Collections.Generic;
using System.IO;
using System.IO.Compression;
using System.Linq;
using System.Text;
using Sazare.Common;
mala / gist:5107120
Last active Mar 19, 2020
View gist:5107120





  • サーバー側で秘密の鍵を持っている(それが無いとアクセストークンを取得できない or 使えない)