This file contains hidden or 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 UnityEngine; | |
public class DebugPauseEditor | |
: MonoBehaviour | |
{ | |
public static void Pause() | |
{ | |
var target = "UnityEditor.EditorApplication"; | |
var assemblies = System.AppDomain.CurrentDomain.GetAssemblies(); |
This file contains hidden or 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
// https://www.hackerrank.com/contests/quora-haqathon/challenges/archery | |
#include <stdio.h> | |
#include <string.h> | |
#include <math.h> | |
#include <stdlib.h> | |
#define min(a, b) (a < b ? a : b) | |
#define max(a, b) (a > b ? a : b) |
This file contains hidden or 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
const int bufferSize = 256; | |
const int numParams = a_thread->GetNumParams(); | |
int len = 0; | |
int size = 0; | |
int ret = -1; | |
char* str = NULL; | |
char buffer[bufferSize] = { 0 }; |
This file contains hidden or 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
// grab all the relevant constants | |
const int bufferSize = 256; | |
const int numParams = a_thread->GetNumParams(); | |
// split single-line declarations | |
int len = 0; | |
int size = 0; | |
int ret = -1; | |
// might as well zero-init the buffer |
This file contains hidden or 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
const int bufferSize = 256; | |
int len = 0, size = 0, i, ret = -1; | |
char * str = NULL, buffer[bufferSize]; | |
// build the string | |
for(i = 0; i < a_thread->GetNumParams(); ++i) | |
{ | |
gmConcat(a_thread->GetMachine(), str, len, size, a_thread->Param(i).AsString(a_thread->GetMachine(), buffer, bufferSize), 64); | |
if(str) |
This file contains hidden or 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
set nocompatible | |
set esckeys | |
set hidden | |
set ruler | |
set visualbell | |
set showcmd | |
set wildmenu | |
set noerrorbells | |
set noexpandtab | |
set nostartofline |
This file contains hidden or 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
# Mostly generated from this: | |
# http://randomartifacts.blogspot.com.au/2012/10/a-proper-cygwin-environment.html | |
# Return immediately if we are not interactive | |
[ -z "$PS1" ] && return | |
# get current git branch name |
This file contains hidden or 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
Show hidden characters
{ | |
"animation_enabled": false, | |
"bold_folder_labels": true, | |
"caret_style": "solid", | |
//"color_scheme": "Packages/User/Monokai (SL).tmTheme", | |
"font_size": 9, | |
"highlight_line": false, | |
"ignored_packages": | |
[ | |
//"Vintageous", |
This file contains hidden or 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
[ | |
// custom keys | |
{ "keys": [ "f7", ], "command": "build", }, | |
{ "keys": [ "f5", ], "command": "build", "args": { "variant": "Run" } }, | |
{ "keys": [ "ctrl+alt+o", ], "command": "show_panel", "args": { "panel": "output.exec", }, }, | |
{ "keys": [ "ctrl+,", ], "command": "focus_group", "args": { "group": 0, }, }, | |
{ "keys": [ "ctrl+.", ], "command": "focus_group", "args": { "group": 1, }, }, | |
{ "keys": [ "ctrl+shift+,", ], "command": "move_to_group", "args": { "group": 0, }, }, | |
{ "keys": [ "ctrl+shift+.", ], "command": "move_to_group", "args": { "group": 1, }, }, | |
{ "keys": [ "ctrl+shift+/", ], "command": "move_to_group", "args": { "group": 2, }, }, |
This file contains hidden or 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
#define _PCH_LIBC | |
#define _PCH_WINDOWS_H | |
#define _PCH_EXTLIB | |
#ifdef _PCH_LIBC | |
#include <cassert> | |
#include <cctype> | |
#include <cerrno> | |
#include <cfloat> |