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
public class BottomDecoratorHelper extends RecyclerView.ItemDecoration { | |
private final int bottomOffset; | |
public BottomDecoratorHelper(int bottomOffset) { | |
this.bottomOffset = bottomOffset; | |
} | |
@Override | |
public void getItemOffsets(Rect outRect, View view, RecyclerView parent, RecyclerView.State state) { |
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
public void setAnimation(float fromAlpha, float toAlpha, long duration, View view){ | |
AlphaAnimation alpha = new AlphaAnimation(fromAlpha, toAlpha); | |
alpha.setDuration(duration); // Make animation instant | |
alpha.setFillAfter(true); // Tell it to persist after the animation ends | |
view.startAnimation(alpha); //Attach to l | |
} |
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 ( '_remote_ip' == $name ) { | |
if ( $remote_ip = $submission->get_meta( 'remote_ip' ) ) { | |
$pageContent = file_get_contents('http://freegeoip.net/json/' . $remote_ip); | |
$parsedJson = json_decode($pageContent); | |
return htmlspecialchars($parsedJson->country_name); | |
} else { | |
return ''; | |
} | |
} |
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
$(document).ready(function(){ | |
$('.modal').each(function(){ | |
var src = $(this).find('iframe').attr('src'); | |
$(this).on('click', function(){ | |
$(this).find('iframe').attr('src', ''); | |
$(this).find('iframe').attr('src', src); | |
}); |
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
# conky configuration | |
# | |
# The list of variables has been removed from this file in favour | |
# of keeping the documentation more maintainable. | |
# Check http://conky.sf.net for an up-to-date-list. | |
# | |
# For ideas about how to modify conky, please see: | |
# http://crunchbanglinux.org/forums/topic/59/my-conky-config/ | |
# | |
# For help with conky, please see: |
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
################# | |
## Eclipse | |
################# | |
*.pydevproject | |
.project | |
.metadata | |
bin/ | |
tmp/ | |
*.tmp |
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
;------------------------------------------------------------------------------ | |
; Generic mobile device sizes | |
;------------------------------------------------------------------------------ | |
"mobile" | |
"Android LDPI Small QVGA" 240 320 pixels 120 dpi RGB 8 1.0 white "none" | |
"Android LDPI Normal WQVGA400" 240 400 pixels 120 dpi RGB 8 1.0 white "none" | |
"Android LDPI Normal WQVGA432" 240 432 pixels 120 dpi RGB 8 1.0 white "none" | |
"Android LDPI Extra Large" 1024 600 pixels 120 dpi RGB 8 1.0 white "none" |