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 * as React from 'react'; | |
import './styles.css'; | |
export interface AnimationProps { | |
isAnimated?: boolean; | |
} | |
export const withAnimation = <T extends {}>(WrappedComponent: React.ComponentClass<T>) => { | |
return class extends React.Component<T & AnimationProps> { |
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 static class OverspeedPeriodExtensions | |
{ | |
public static IQueryable<OverspeedPeriod> WithRemoteId(this IQueryable<OverspeedPeriod> overspeedPeriods, params int[] remoteIds) | |
{ | |
return overspeedPeriods.Where(l => remoteIds.Contains(l.RemoteId)); | |
} | |
/// <summary> | |
/// Filters by all periods that start within date range. | |
/// |
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
// Assumes LEGEND exists like in legend.js and that map is an already initialized Leaflet map | |
for(var i = 0; i < LEGEND.sections.length; i++) { | |
for(var j = 0; j < LEGEND.sections[i].keys.length; j++) { | |
L.marker([LEGEND.sections[i].keys[j].coordinates[0], LEGEND.sections[i].keys[j].coordinates[1]]) | |
.bindLabel(LEGEND.sections[i].keys[j].text, { noHide: true }) | |
.addTo(map) | |
.showLabel(); | |
} | |
} |
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
var data = { | |
"type": "FeatureCollection", | |
"features": [ | |
{ | |
"type": "Feature", | |
"properties": { | |
"name": "two" | |
}, | |
"geometry": { | |
"type": "Point", |
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
var data = { | |
"type": "FeatureCollection", | |
"features": [ | |
{ | |
"type": "Feature", | |
"properties": { | |
"name": "two" | |
}, | |
"geometry": { | |
"type": "Point", |
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
using System; | |
using CrossUI.Touch.Dialog.Elements; | |
using System.Drawing; | |
using MonoTouch.UIKit; | |
using MonoTouch.Foundation; | |
using CrossUI.Touch.Dialog; | |
/// <summary> | |
/// Multiline entry element. | |
/// </summary> |
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
({ | |
appDir: '../', | |
baseUrl: '../js/', | |
dir: '../../Website-build', | |
//optimize: 'none', | |
paths: { |
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
({ | |
baseUrl: "../js", | |
mainConfigFile: "../js/main.js", | |
optimize: "none", | |
name: "main", | |
//excludeShallow: ["jquery", "handlebars", "leaflet", "wax"], | |
out: "../js/main-built.js", | |
paths: { | |
jquery: 'empty:', |
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
body { | |
background: #383c45; | |
color: #e6e6e6; } | |
a { | |
color: #949494; } | |
a:link, a:visited { | |
color: #949494; } | |
a:hover, a:active, a:focus { | |
color: #c7c7c7; } |
NewerOlder