[flex] {
box-sizing: border-box;
}
[flex] { flex: 1; } // == { flex: 1 1 0%; }
[flex="grow"] { flex: 1 1 100%; }
[flex="initial"] { flex: 0 1 auto; }
[flex="auto"] { flex: 1 1 auto; }
[flex="none"] { flex: 0 0 auto; }
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
import com.google.gwt.canvas.client.Canvas; | |
import com.google.gwt.canvas.dom.client.Context2d; | |
import com.google.gwt.canvas.dom.client.CssColor; | |
import com.google.gwt.core.client.GWT; | |
private void drawChart() | |
{ | |
// Initialize the canvas. | |
final Canvas canvas = Canvas.createIfSupported(); |
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
engine.setOnAlert(new EventHandler<WebEvent<String>>() { | |
@Override | |
public void handle(WebEvent<String> event) { | |
JOptionPane.showMessageDialog( | |
myPanel, | |
event.getData(), | |
"Alert Message", | |
OptionPane.ERROR_MESSAGE); | |
} | |
}); |
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 (isDebugging()) | |
engine.documentProperty().addListener(new ChangeListener<Document>() { | |
@Override | |
public void changed(ObservableValue<? extends Document> prop, | |
Document oldDoc, Document newDoc) { | |
enableFirebug(engine); | |
} | |
}); | |
/** |
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
.fade { | |
transition:0.5s linear all; | |
} | |
.fade.ng-enter-stagger, | |
.fade.ng-leave-stagger { | |
transiton-delay:0.1s; | |
transition-duration:0s; | |
} | |
.fade.ng-enter { | |
opacity:0; |
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
/** | |
* @ngDoc directive | |
* @restrict A | |
* @description Add this attribute to input fields that need to support browser autofill such as username and password. | |
*/ | |
main.directive('autoFillSync', function($timeout) { | |
return { | |
require: 'ngModel', | |
restrict: 'A', | |
link: function(scope, elem, attrs, model) { |
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
package com.devintent.fitness.app; | |
import android.annotation.SuppressLint; | |
import android.app.Activity; | |
import android.app.DatePickerDialog; | |
import android.app.Dialog; | |
import android.app.DialogFragment; | |
import android.app.TimePickerDialog; | |
import android.content.Intent; | |
import android.content.IntentSender; |
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
# https://github.com/github/gitignore/blob/master/Global/JetBrains.gitignore | |
# Covers JetBrains IDEs: IntelliJ, RubyMine, PhpStorm, AppCode, PyCharm | |
*.iml | |
## Directory-based project format: | |
.idea/ | |
# if you remove the above rule, at least ignore the following: | |
# User-specific stuff: | |
# .idea/workspace.xml |
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
{ | |
"apiVersion": "v1", | |
"kind": "ReplicationController", | |
"metadata": { | |
"name": "hello-node" | |
}, | |
"spec": { | |
"replicas": 2, | |
"selector": { | |
"app":"hello-node" |
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
//... | |
import {ROUTER_DIRECTIVES, Router, Event, NavigationEnd} from '@angular/router'; | |
import {environment} from './environment'; | |
//... | |
declare var ga : any; | |
//.. | |
constructor(private router: Router ) { |
OlderNewer