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
git remote prune origin - usuwa zdalnie usunięte branche | |
git reset --soft HEAD^ - cofa ostatnio wykonany commit |
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 scrollTo(target) { | |
// Get the top offset of the target anchor | |
var target_offset = $("#" + target).offset(); | |
var target_top = target_offset.top; | |
// Go to that anchor by setting the body scroll top to anchor top | |
$('html, body').animate({ scrollTop: target_top }, 500); | |
}; |
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
// top-level namespace being assigned an object literal | |
var myApp = myApp || {}; | |
// a convenience function for parsing string namespaces and | |
// automatically generating nested namespaces | |
function extend( ns, ns_string ) { | |
var parts = ns_string.split("."), | |
parent = ns, | |
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
<img alt="" class="alignnone" src="http://placehold.it/350x150"> | |
<p>Within this document, references will be made to <em>elements</em> and <em>attributes</em>. It's important to understand the difference, <wbr>so consider this sample code:</p> | |
<p><code><a href="index.php">Home</a></code></p> | |
<p>The base <abbr title="HyperText Markup Language">HTML</abbr> element is the <code>a</code> in this case. The attribute is any additional information about that element within the initial < > pair, or the <code>href</code> value in this case.</p> | |
<p>To view the example usage for any item within this document, please view its source.</p> | |
<hr> |
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
#!/bin/sh | |
# Install Homebrew | |
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" | |
# Install taps | |
brew tap homebrew/cask | |
# Install cli stuff | |
brew install git |
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
sed -i '' 's/utf8mb4_0900_ai_ci/utf8mb4_unicode_ci/g' 2019-10-26-prod.sql |
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
const storageKey = 'storage' | |
const serializeArray = (elements, options) => { | |
const serializeData = [] | |
const defaults = { | |
excludeTypes: ['password', 'hidden', 'submit'], | |
excludeNames: [], | |
} | |
const opts = Object.assign(defaults, options) |
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
#!/bin/sh | |
echo "\033[4;33mUpdating Oh My Zsh…\033[0m" | |
omz update | |
echo "\033[4;33mUpdating global Homebrew packages…\033[0m" | |
brew upgrade --greedy | |
brew upgrade --cask --greedy | |
brew cleanup |
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
#!/bin/bash | |
# ------------------------------------------------------------------------------ | |
echo "\033[4;33mUpdating Oh My Zsh\033[0m" | |
omz update --unattended | |
# ------------------------------------------------------------------------------ |
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
{ | |
// Window | |
"window.title": "${rootName}${separator}${activeEditorShort}", | |
"window.titleBarStyle": "custom", | |
"window.nativeTabs": true, | |
"window.commandCenter": false, | |
"workbench.colorTheme": "Default Dark+", | |
"workbench.iconTheme": "vs-tabler", | |
"workbench.sideBar.location": "right", | |
"workbench.editor.enablePreviewFromQuickOpen": true, |
OlderNewer