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
// rest response in JSON format. | |
{ | |
"statuses": [{ | |
"name": "open", | |
"count": 2 | |
}, { | |
"name": "pending", | |
"count": 1 | |
}, { |
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
{ | |
"data": { | |
"filters":[ | |
{"name":"pending","count":155, "order": 2}, | |
{"name":"processing","count":0,"order": 3}, | |
{"name":"open","count":0, "order": 1} | |
] | |
} | |
} |
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
exec: { | |
user: { | |
cmd: 'echo %USERPROFILE%', | |
stdout: false, | |
callback: function(varX, stdout){ | |
// trim used to get rid of Windows: \n. For some reason "grunt.util.normalizelf(stdout)" doesn't work | |
grunt.config.set("userProfileFolder", stdout.trim()); | |
} | |
} | |
} |
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
<input type="text" id="dateFrom" name="dateFrom" required ng-disabled="whatever" | |
ng-model="model.data.dateFrom" bs-datepicker autoclose="true" | |
data-date-format="MM-dd-yyyy" | |
/> |
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
var articlesPattern = /( a | an | the )/ |
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
<form id="myForm" name="myForm" enctype="multipart/form-data" method="POST" | |
data-bind="submit: pseudoSubmitForm"> | |
<select data-bind="options: uiTypes, | |
optionsText: 'typeLabel', | |
optionsValue: 'typeValue', | |
value: selectedType, | |
optionsCaption: 'Choose...'"> | |
</select> |
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
(function (){ | |
var node = document.getElementById('myForm'); | |
function AppViewModel() { | |
this.uiTypes = ko.observableArray([ | |
{"typeValue":"A", "typeLabel": "1 field type"}, | |
{"typeValue":"B", "typeLabel": "2 fields type"} | |
]); |
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
# http://osxdaily.com/2010/02/12/how-to-quit-the-finder/ | |
defaults write com.apple.finder QuitMenuItem -bool true && killall Finder # false #default | |
# Finder. Show All | |
defaults write com.apple.finder AppleShowAllFiles true #false #default | |
# Enable the debug menu and restart the Mac App Store. | |
defaults write com.apple.appstore ShowDebugMenu -bool true # false #default | |
# Use Plain Text Mode as Default |
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
#! /usr/bin/env bash | |
### setup some variables | |
# Copied from https://discussions.apple.com/thread/6619286?start=15&tstart=0 | |
wifiInterface="en0" # changed from en2 to en0, coz in my case, en0 has 192.168.0.12 | |
wifiIP=$(ipconfig getifaddr "$wifiInterface") | |
echo "Watching" $wifiInterface "on" $wifiIP | |
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
git config --get-all user.name #local repo git config file. | |
git config --global --get-all user.name #user config file. | |
git config --system --get-all user.name #system git config file. | |
git config --global user.name "Andrii Lundiak" | |
git config --global user.email "[email protected]" | |
git config --global credential.helper store # if I'm lazy to type password always or setup SSH keys | |
git config --global push.default simple # | |
# https://git-scm.com/docs/gitattributes |
OlderNewer