- http://stackoverflow.com/questions/804115 (
rebase
vsmerge
). - https://www.atlassian.com/git/tutorials/merging-vs-rebasing (
rebase
vsmerge
) - https://www.atlassian.com/git/tutorials/undoing-changes/ (
reset
vscheckout
vsrevert
) - http://stackoverflow.com/questions/2221658 (HEAD^ vs HEAD~) (See
git rev-parse
) - http://stackoverflow.com/questions/292357 (
pull
vsfetch
) - http://stackoverflow.com/questions/39651 (
stash
vsbranch
) - http://stackoverflow.com/questions/8358035 (
reset
vscheckout
vsrevert
)
Discover gists
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
<?php | |
// Modify the data returned for BB post module auto suggest queries to include post URLs | |
add_filter('fl_builder_auto_suggest_posts_lookup', function ( $data ) { | |
foreach ( $data as $key => $post ) { | |
$post_object = get_post( $post['value'] ); | |
// If the post object exists, append the URL path to the title | |
if ( $post_object ) { | |
$permalink = get_permalink( $post['value'] ); |
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
/** | |
* Creates a read/writable property which returns a function set for write/set (assignment) | |
* and read/get access on a variable | |
* | |
* @param {Any} value initial value of the property | |
*/ | |
function createProperty(value) { | |
var _value = value; | |
/** |
I wasted time WTFM so RTFM
Enable Option | Disable Option | List Enabled Options | Enabled Options Sample Output |
|
|
|
|
This table illustrates the behavior of various shopt
options in bash. By toggling these options, you can influence how the shell handles things like filename completion, history management, and error handling.
Option | Description | Disabled | Enabled | Example |
---|
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
<!-- livebook:{"persist_outputs":true} --> | |
# Distribute | |
## Section | |
A small toy to show how you might, given a stream, do a "fan out", processing different elements in separate streams. Powered by simple primitives like `Stream.resource` and `spawn_link`. | |
```elixir | |
defmodule Distribute do |
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
#!/usr/bin/env python3 | |
# Adaption of https://github.com/tom-doerr/chatgpt_commit_message_hook/main/prepare-commit-msg | |
# | |
# Mark this file as executable and add it into the global hooks folder | |
# whose path is given by the core.hooksPath configuration variable | |
# skip during rebase | |
import sys | |
if len(sys.argv) > 2: |
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
@echo off | |
REM Call from Delphi/RAD Studio IDE with the following parameters | |
REM $PATH($EXENAME) $NAMEONLY($PROJECT) | |
echo ============================================================= | |
echo Be sure you Compile Android 64 and Deploy [Shift-Ctrl-Alt-F9] | |
echo. | |
echo Also set <application android:resizeableActivity="true"> in AndroidManifest.template.xml | |
echo ============================================================= | |
echo Path: %1 | |
set apk=%2\bin\%2.apk |
Make sure to export/import your settings through File -> Manage IDE settings
before/after
- Close PHPStorm
- Run these in PowerShell to remove PhpStorm configuration:
Remove-Item '.\AppData\Local\Jetbrains\PhpStorm*'
Remove-Item '.\AppData\Roaming\Jetbrains\PhpStorm*'
NewerOlder