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
{[ | |
{ | |
type: 'line', | |
legend: false, | |
fullWidth: false, | |
expandable: true, | |
options: { | |
gap: 2, | |
spacing: '0.25' | |
}, |
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
/* THE COMPONENT EXAMPLE */ | |
@Component({ | |
moduleId: __filename, | |
selector: 'fs-home-page', | |
templateUrl: './home.template.html', | |
changeDetection: ChangeDetectionStrategy.OnPush, | |
animations: [Animator.bounceIn(1000)], | |
styles: [` | |
:host { |
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
export interface UIDecorator { | |
footer?: boolean; | |
navigator?: UINavbarState; | |
} | |
export class UIElement {} | |
export function UI(meta?: UIDecorator): any { | |
let decorator = <(meta?: UIDecorator) => any>makeDecorator( | |
'UI', |
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
(function() { | |
/** | |
* @param {number} opt_attributes | |
* @return {undefined} | |
*/ | |
function replace(opt_attributes) { | |
map.set(opt_attributes); | |
} | |
/** | |
* @param {Object} context |
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
/** | |
* @jsx React.DOM | |
*/ | |
var React = require('react'), | |
MyReactComponent = React.createClass({ | |
// The object returned by this method sets the initial value of this.state | |
getInitialState: function(){ | |
return {}; |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
#!/bin/bash | |
AUTHOR=$(git config user.name) | |
DATE=$(date +%F) | |
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" | |
FILE="$DIR/CHANGELOG.MD" | |
echo "#CHANGELOG ON" $DATE > $FILE | |
git log --no-merges --format="%cd" --date=short --no-merges --author="$AUTHOR" --all | sort -u -r | while read DATE ; do | |
if [[ $NEXT != "" ]] | |
then |
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
;(function($, undefined) { | |
// Save plugin name internally. | |
var pluginName = 'collapsible'; | |
var Collapsible = function($el, options) { | |
var self = this; | |
/** | |
* Default options |
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
server { | |
listen 80; | |
server_name *.grav.dev; | |
root /home/www/grav.dev; | |
index index.html index.htm index.php; | |
charset utf-8; | |
location /user { | |
rewrite ^/user/accounts/(.*)$ /error redirect; |
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
<?php | |
class PriorityCalculator | |
{ | |
private $data = array(); | |
private $universe = 0; | |
public function add( $data, $probability ) | |
{ | |
$this->data[ $x = count( $this->data ) ] = new stdClass; |
NewerOlder