Skip to content

Instantly share code, notes, and snippets.

@guionardo
guionardo / messagebox_timeout.cs
Last active August 22, 2018 11:59
MessageBox with timeout (c#)
[DllImport("user32.dll", EntryPoint = "FindWindow", SetLastError = true)]
static extern IntPtr FindWindowByCaption(IntPtr ZeroOnly, string lpWindowName);
[DllImport("user32.Dll")]
static extern int PostMessage(IntPtr hWnd, UInt32 msg, int wParam, int lParam);
public static void MessageBox(string Text, string Caption = "", int timeOut = 0)
{
if (Caption.Length == 0)
Caption = "MessageBox";
@guionardo
guionardo / Instructions.md
Created May 26, 2018 23:13 — forked from glocore/Instructions.md
Setup React Native on Ubuntu 16.04/16.10

1. Install Node.js

  • Follow the steps given here to install Node.js and NPM.
  • Verify whether NPM is installed by typing npm -v in a terminal window.

2. Install React Native CLI

  • npm install -g react-native-cli

3. Setup Android Development Environment

  • Download and install Android Studio as explained here.
  • Run Android Studio and open the SDK Manager. Under the SDK Platforms tab, check Show Package Details, expand Android 6.0 (Marshmallow) and check the following:

Keybase proof

I hereby claim:

  • I am guionardo on github.
  • I am guionardo (https://keybase.io/guionardo) on keybase.
  • I have a public key ASCsP5sZ2wY21-ZHaJevW-pDvr6yFUpfSiTBHbfYbT9Ttwo

To claim this, I am signing this object: