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
IfWinExist, ahk_class UnityContainerWndClass | |
{ | |
WinActivate | |
Send ^p ; sends Ctrl+P | |
} | |
else | |
{ | |
MsgBox, 64, Unity is not open. Please open the project to run from Visual Studio. | |
} |
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; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Windows.Forms; | |
namespace copypath | |
{ | |
static class Program | |
{ | |
/// <summary> |
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
.topbar { display: none; } | |
.community-bulletin { display: none; } | |
#hireme { display: none; } | |
#hot-network-questions {display:none;} | |
body {margin-top: 30px} | |
.tagged-ignored {display: none;} | |
pre | |
{ | |
padding: 10px 15px; | |
border: rgb(207, 207, 207) solid 1px; |
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
apply plugin: 'com.android.application' | |
android { | |
// ... | |
} | |
dependencies { | |
compile(project(':lib')) | |
} |
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 string MakeSafeFileName(string name, char replaceChar = '_') | |
{ | |
var temp = name; | |
foreach (var character in Path.GetInvalidFileNameChars().Concat(Path.GetInvalidPathChars())) | |
{ | |
temp = temp.Replace(character, replaceChar); | |
} | |
return temp; |
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
package io.jaywick.android.helpers; | |
import android.view.KeyEvent; | |
import android.view.View; | |
public abstract class OnEnterKeyListener implements View.OnKeyListener | |
{ | |
public abstract void onEnterKeyDown(); | |
@Override |
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
class MyClass | |
{ | |
#region Singleton Access | |
private static readonly Lazy<Singleton> instance = new Lazy<Singleton>(() => new Singleton()); | |
public static Singleton Instance | |
{ | |
get { return instance.Value; } | |
} |
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; | |
using System.Drawing; | |
using System.Windows.Forms; | |
/// WinForms trap app boilerplate | |
/// Full credit to @alanbondo: | |
/// https://alanbondo.wordpress.com/2008/06/22/creating-a-system-tray-app-with-c/ | |
namespace TrayApp | |
{ | |
public class App : Form |
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
#s:: | |
Run C:\Windows\Sysnative\SnippingTool.exe,,,processId | |
WinWait, ahk_pid %processId% | |
WinActivate, ahk_pid %processId% | |
SendInput ^n | |
return |
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
[ | |
{ | |
"key": "ctrl+t", | |
"command": "workbench.action.files.newUntitledFile", | |
"when": "editorTextFocus" | |
}, | |
{ | |
"key": "ctrl+b", | |
"command": "editor.action.goToDeclaration", | |
"when": "editorTextFocus" |
OlderNewer