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
/** | |
* serializeToJSON jQuery plugin | |
* https://github.com/raphaelm22/jquery.serializeToJSON | |
* @version: v1.4.1 (October, 2019) | |
* @author: Raphael Nunes | |
* | |
* Created by Raphael Nunes on 2015-08-28. | |
* | |
* Licensed under the MIT (http://www.opensource.org/licenses/mit-license.php) | |
*/ |
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
function Invoke-Call { | |
param ( | |
[scriptblock]$ScriptBlock, | |
[string]$ErrorAction = $ErrorActionPreference, | |
[string]$WarningAction = $WarningPreference | |
) | |
$WarningPreference = $WarningAction | |
& @ScriptBlock | |
if (($lastexitcode -ne 0) -and $ErrorAction -eq "Stop") { | |
exit $lastexitcode |
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
# \[\033[32m\] green | |
# \w working directory | |
# \[\033[0m\] default color | |
export PS1="\[\033[32m\]\w \[\033[0m\]$ " | |
# to edit .bash_profile on git for windows | |
# cd ~ | |
# touch .bashrc | |
# vi .bashrc | |
# i #insert mode |
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 test -f /etc/profile.d/git-sdk.sh | |
then | |
TITLEPREFIX=SDK-${MSYSTEM#MINGW} | |
else | |
TITLEPREFIX=$MSYSTEM | |
fi | |
if test -f ~/.config/git/git-prompt.sh | |
then | |
. ~/.config/git/git-prompt.sh |
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
network = <network_name> | |
repository = <repository_path> | |
# works on Windows (Git Bash, Powershell, Command Prompt) and Mac (bash, zsh, Powershell) | |
path := ${PWD} | |
ifeq ($(path),) | |
path := ${CURDIR} | |
endif | |
# let's make makefile make no files | |
#.PHONY: build-default $(MAKECMDGOALS) |
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
REM first step is to clear the logs. Once you do this try to reproduce the error and then write logs ASAP to limit the amount of noisy logs recorded | |
REM clear the logs | |
abd logcat -c | |
REM write logs to file, tag format with priority Info or higher and exclude specified tag names | |
REM adb logcat -d > logs.txt -v tag *:I -e "^(?!.*(TagToExcludeExpr|ViewRootImpl*)).*$" | |
adb logcat -d > logs.txt -v tag TelephonyProvider:W FaceWidgetCalendarManager:W SurfaceFlinger:W netd:W PersonaServiceHelper:W SamsungAlarmManager:W WindowManager:W InputDispatcher:W InputReader:W sensors-hal:W WifiConnectivityMonitor:W BugleRcsEngine:W GameTools:W InputDispatcher:W CameraService:W chatty:W netd:W .game.gametool:W AllShare(ASF_DMC):W *:I |
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 fields = form.getFields(); | |
var errorDetails = ''; | |
fields.each(function (field) { | |
var errors = field.getErrors(); | |
for (var i = 0; i < errors.length; i++) { | |
errorDetails += errors[i] + '<br>'; | |
} | |
}); |
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 Autofac; | |
using Autofac.Core; | |
using MvvmCross.Platform.Core; | |
using MvvmCross.Platform.IoC; | |
using System; | |
using System.Linq; | |
public class AutofacMvxIocProvider : MvxSingleton<IMvxIoCProvider>, IMvxIoCProvider | |
{ | |
private readonly IContainer _container; |
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
<!-- Visual Studio 2022 --> | |
<!-- Put this in every csproj file --> | |
<Import Project="..\..\Tools\Cleanup.targets"/> | |
<!-- Tools\Cleanup.targets --> | |
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> | |
<Target Name="DeleteBinAndObjFolders" AfterTargets="Clean"> <!-- common vars https://msdn.microsoft.com/en-us/library/c02as0cs.aspx?f=255&MSPPError=-2147217396 --> | |
<RemoveDir Directories="$(BaseOutputPath)" /> <!-- bin --> | |
<RemoveDir Directories="$(ProjectDir)$(BaseIntermediateOutputPath)" /> <!-- obj --> | |
</Target> |
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
{ | |
"manifestVersion": 1, | |
"deployments": { | |
"aspNetCoreWeb": [ | |
{ | |
"name": "app", | |
"parameters": { | |
"appBundle": ".", | |
"iisPath": "/", |
NewerOlder