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
div { | |
padding:1em; | |
margin:1em; | |
background:#dadada; | |
} |
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
ssh-keygen -t rsa -b 4096 -N '' -C "email@example.com" -f ~/.ssh/id_rsa | |
ssh-keygen -t rsa -b 4096 -N '' -C "email@example.com" -f ~/.ssh/github_rsa | |
ssh-keygen -t rsa -b 4096 -N '' -C "email@example.com" -f ~/.ssh/mozilla_rsa |
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
/* | |
@fliptopbox | |
LZW Compression/Decompression for Strings | |
Implementation of LZW algorithms from: | |
http://rosettacode.org/wiki/LZW_compression#JavaScript | |
Usage: | |
var a = 'a very very long string to be squashed'; | |
var b = a.compress(); // 'a veryāăąlong striċ to bečquashed' |
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
// Place your settings in this file to overwrite the default settings | |
{ | |
"workbench.colorTheme": "Visual Studio Dark", | |
"files.associations": { | |
"*.json.txt": "json" | |
}, | |
"files.exclude": { | |
"*/**/**.meta": true, | |
"*/**/_**.*": true | |
//"*/**/**.meta": true, |
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
<script src="http://cdnjs.cloudflare.com/ajax/libs/processing.js/1.4.1/processing-api.min.js"></script><html> | |
<!-- | |
Created using jsbin.com | |
Source can be edited via http://jsbin.com/pdfjs-helloworld-v2/8598/edit | |
--> | |
<body> | |
<canvas id="the-canvas" style="border:1px solid black"></canvas> | |
<input id='pdf' type='file'/> | |
<!-- Use latest PDF.js build from Github --> |
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
# ADD | |
git submodule add git@bitbucket.org:drawcode/lib-vr-base.git unity-game/Assets/_app/code/libs/lib-vr-base | |
git submodule init unity-game/Assets/_app/code/libs/lib-vr-base | |
git submodule update unity-game/Assets/_app/code/libs/lib-vr-base | |
### REMOVE | |
git submodule deinit -f unity-game/Assets/_app/code/libs/lib-vr-base | |
rm -rf .git/modules/unity-game/Assets/_app/code/libs/lib-vr-base |
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
var fileUpload = $(".files-upload").get(0); | |
var files = fileUpload.files; | |
var data = new FormData(); | |
for (var i = 0; i < files.length ; i++) { | |
data.append(files[i].name, files[i]); | |
} | |
data.append("test", "1"); | |
$.ajax({ | |
type: "POST", | |
url: "/api/v1/files/", |
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
If there is still issue around access after creating SSH and adding it in your Bitbucket account or wherever, you need to do the below on GitBash, OSX or Linux: | |
ssh-add -l | |
Then, if you don't see your key listed, add it with: | |
ssh-add ~/.ssh/identity | |
This worked for me. | |
ssh-add ~/.ssh/id_rsa |
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
public static void Email(Context context, string emailTo, string emailCC, string subject, string emailText, List<string> filePaths) | |
{ | |
var email = new Intent(Intent.ActionSendMultiple); | |
email.SetType("text/plain"); | |
email.PutExtra(Intent.ExtraEmail, new string[]{emailTo}); | |
email.PutExtra(Intent.ExtraCc, new string[]{emailCC}); | |
var uris = new List<IParcelable>(); | |
filePaths.ForEach(file=> { |
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
Code (CSharp): | |
// Somewhere at line 3345 in method GenerateColorToTargets() | |
else if(GetComponent<CanvasRenderer>()) | |
{ | |
colors = new Color[1,3]; | |
colors[0,0] = colors[0,1] = GetComponent<CanvasRenderer>().GetColor(); | |
} | |
Code (CSharp): |