Title: Foreign Function Interface Author: Charles Oliver Nutter Organization: Red Hat Owner: Charles Oliver Nutter Created: 2014/01/28 Type: Feature State: Draft Exposure: Open Component: --/-- Scope: JDK
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 Col = require('react-bootstrap/lib/Col') | |
var PageHeader = require('react-bootstrap/lib/PageHeader') | |
var React = require('react') | |
var Row = require('react-bootstrap/lib/Row') | |
var {connect} = require('react-redux') | |
var {reduxForm} = require('redux-form') | |
var DateInput = require('./DateInput') | |
var FormField = require('./FormField') | |
var LoadingButton = require('./LoadingButton') |
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
WeakHashMap<Integer, String> map = new WeakHashMap<Integer, String>(); | |
map.put(new Integer(10), "aaa"); // remove entry | |
// map.put(10, "aaa"); // don't remove entry | |
// map.put(Integer.valueOf(10), "aaa"); // don't remove entry | |
for (int i = 0; i < Integer.MAX_VALUE; i++) { | |
if (map.size() != 0) { | |
System.out.println("At iteration " + i + " the map still holds the reference to object"); | |
} else { |
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 | |
# Created by Hugo Ferreira <[email protected]> on isoD | |
# Licensed under the MIT License: https://opensource.org/licenses/MIT | |
set -u # treat unset variables as errors | |
readonly BASEDIR=$(cd "$(dirname "$0")" && pwd) # where the script is located | |
readonly CALLDIR=$(pwd) # where it was called from | |
readonly SUCCESS=0 # exit status of bash commands |
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
_.extend Backbone.Validation.callbacks, | |
valid: (view, attr, selector) -> | |
control = view.$('[' + selector + '=' + attr + ']') | |
group = control.parents(".control-group") | |
group.removeClass("error") | |
if control.data("error-style") == "tooltip" | |
# CAUTION: calling tooltip("hide") on an uninitialized tooltip | |
# causes bootstraps tooltips to crash somehow... | |
control.tooltip "hide" if control.data("tooltip") |
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
/** | |
* Attempt for Chrome-style progress-indicator with SVG and CSS animations | |
*/ | |
@keyframes spin { | |
to { | |
stroke-dashoffset: -264; | |
} | |
} |
Attention: the list was moved to
https://github.com/dypsilon/frontend-dev-bookmarks
This page is not maintained anymore, please update your bookmarks.
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
public class SpringExceptionTranslationExecuteListener | |
extends DefaultExecuteListener { | |
/** {@inheritDoc} */ | |
@Override | |
public void exception(ExecuteContext ctx) { | |
SQLException e = ctx.sqlException(); | |
if (e != null) { | |
String name = ctx.configuration().dialect().thirdParty().springDbName(); |
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
Mac OSX keyboard layout switching is a pain in the ass. | |
Using a keyboard layout different than the one actually printed on | |
your keys is also weird. The following keyboard shortcuts allow you | |
to create the various diacritics used in languages like Portuguese | |
on the British layout of a Mac keyboard. | |
Alt+e -> ´ Examples: é ó á | |
Alt+i -> ^ Examples: â ê | |
Alt+c -> ç |
NewerOlder