Skip to content

Instantly share code, notes, and snippets.

@Joev-
Joev- / DialogFragmentCallback.md
Last active June 25, 2021 08:43
Getting results from DialogFragment to calling Fragment using Callbacks

##Getting results from DialogFragments to another Fragment.

When setting up the DialogFragment make a call to Fragment.setTargetFragment()
Then from DialogFragment you can access the main fragment with Fragment.getTargetFragment()
Use interfaces to provide the required actions to the calling Fragment.

##Example code.

###AddFriendDialogFragment - Calls back to calling fragment.

@Kubo2
Kubo2 / onzoom.js
Last active January 26, 2021 12:44
Detect zoom event in JavaScript
// set zoom event
window.onzoom = function(e) {
// zoom event
}
// detect resize
(function() {
var oldresize = window.onresize;
window.onresize = function(e) {
@xrman
xrman / gist:4468f545b169969466bceb694d742dad
Created March 12, 2019 21:47
FastStone Capture Full Serial Key
Registration Code
Name : www.xyraclius.com
Serial : OOCRYIMDMDPWRETFPSUZ