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 int[][] blur(int[][] board, int blurSize) { | |
int radius = (blurSize - 1) / 2; | |
int[][] blurred = new int[board.length][board[0].length]; | |
for (int i = 0; i < board.length; i++) { | |
for (int j = 0; j < board[i].length; j++) { | |
int sum = 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
import {Component} from 'react'; | |
import {findDOMNode} from 'react-dom'; | |
class AnimertApneLukk extends Component { | |
// logikk basert på http://n12v.com/css-transition-to-from-auto/ | |
componentWillEnter(callback) { | |
var element = findDOMNode(this); | |
var hoyde = element.offsetHeight; // les ut høyden når 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
class Highcharts extends React.Component { | |
componentDidMount() { | |
this.renderChart(); | |
} | |
componentWillUnmount() { | |
if (this.chart) { | |
this.chart.destroy(); | |
} |
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 React = require('react'); | |
module.exports = function (chartType, Highcharts){ | |
var displayName = 'Highcharts' + chartType; | |
var result = React.createClass({ | |
displayName: displayName, | |
propTypes: { | |
config: React.PropTypes.object.isRequired, | |
isPureConfig: React.PropTypes.bool |
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
D:\prog\ai2\oving5\robotst\out\PRODUC~1\robots\out\PRODUC~1\robots\out\PRODUC~1\robots\out\PRODUC~1\robots\out\PRODUC~1\robots\out\PRODUC~1\robots\out\PRODUC~1\robots\out\PRODUC~1\robots\out\PRODUC~1\robots\out\PRODUC~1\robots\out\production\robots |
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
// \-diagonals | |
for (int i = (- EggCartonRunner.M) + 2; i < EggCartonRunner.M - 1; i++) { | |
eggsInLoop = 0; | |
for (int j = 0; j < EggCartonRunner.M; j++) { | |
if (i+j >= 0 && i+j < EggCartonRunner.M) { | |
if (state[j][i+j]) { | |
eggsInLoop++; | |
} | |
} | |
} |