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
// This code is a Xamarin adaptation of https://letcreateanapp.com/2021/05/20/pinch-to-zoom-image-in-out-programmatically/ | |
public ImageViewer() | |
{ | |
scrollView = new UIScrollView | |
{ | |
ShowsHorizontalScrollIndicator = false, | |
ShowsVerticalScrollIndicator = false, | |
BouncesZoom = false, | |
MinimumZoomScale = 1, |
This file has been truncated, but you can view the full file.
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
Building: AndroidDeviceManager.Mac (Debug) | |
Build started 14/03/2018 5:14:15 PM. | |
Environment at start of build: | |
MSBUILD_EXE_PATH = /Users/dima/Library/Caches/VisualStudio/7.0/MSBuild/3887_1/MonoDevelop.Projects.Formats.MSBuild.exe | |
SSH_AUTH_SOCK = /private/tmp/com.apple.launchd.mDKwEi8O3i/Listeners | |
COMMAND_MODE = unix2003 | |
LANGUAGE = en | |
XPC_FLAGS = 0x0 | |
MONO_GAC_PREFIX = /Applications/Visual Studio.app/Contents/Resources |
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
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
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
public function loginRequest(socialId:String) { | |
var req = new haxe.Http(_url + login); | |
var dataMap:StringMap<String> = new StringMap<String>(); | |
dataMap.set('social_id', socialId); | |
var postData:String = this.createPostData(dataMap); | |
req.setPostData(postData); | |
//trace("post data : " + postData); | |
req.onData = onSuccess; |
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
%% Модуль mail | |
send_mail(Params) -> ok. | |
Params = [{<<"Relay">>, Relay}, {<<"MailTo">>, MailTo}, {<<"Usr">>, Usr}, {<<"Pass">>, Pass}, | |
{<<"Subject">>, Subject}, {<<"Text">>, Text}]. | |
%% где Subject и Text могут не быть в списке параметров | |
Relay = binary() - % smtp адрес хоста | |
MailTo = binary() - % мыло, куда отправляем письмо |
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
=INFO REPORT==== 31-Jul-2012::20:58:35 === | |
alarm_handler: {set,{{disk_almost_full,"/Volumes/Limbo"},[]}} | |
=INFO REPORT==== 31-Jul-2012::20:58:35 === | |
alarm_handler: {set,{system_memory_high_watermark,[]}} | |
=ERROR REPORT==== 31-Jul-2012::20:58:35 === | |
The on_load function for module jiffy returned {error, | |
{load_failed, | |
"Failed to load NIF library: 'dlopen(apps/jiffy/priv/jiffy.so, 2): image not found'"}} |
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
private function random2():void { | |
var randoms:Vector.<int> = new Vector.<int>(); | |
var sumRandoms:int = 0; | |
var tempRnd:int; | |
var canEnd:Boolean = true; | |
for (var i:int = 0; i < 5; i++) { | |
randoms.forEach(function(item:int, ..._):void { sumRandoms += item; } | |
randoms.push(Math.random() * ((100-sumRandoms) / (5-i)) + sumRandoms); | |
} | |
} |