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
<html> | |
<head> | |
<title>Halla Martin</title> | |
<meta charset="utf-8"/> | |
<link rel="stylesheet" href="style.css" /> | |
</head> | |
<body> | |
<section class="box"> | |
<h1>Sorry!</h1> | |
<p> |
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
exports.config = { | |
files: { | |
javascripts: { | |
joinTo: "js/app.js" | |
}, | |
stylesheets: { | |
joinTo: "css/app.css", | |
order: { | |
before: | |
[ |
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 removeStyle (img) { | |
img.removeAttr("width height"); | |
return img; | |
} | |
function align (img) { | |
const side = img.hasClass('left') ? 'left' : 'right'; | |
const parent = img.parent('p:first'); | |
const imageText = parent.next(); |
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
const gulp = require('gulp'); | |
const sass = require('gulp-sass'); | |
const sassGlob = require('gulp-sass-glob'); | |
const sourcemaps = require('gulp-sourcemaps'); | |
const gutil = require('gulp-util'); | |
const notify = require('gulp-notify'); | |
const browserify = require('browserify'); | |
const watchify = require('watchify'); | |
const babelify = require('babelify'); | |
const source = require('vinyl-source-stream'); |
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
test1 = "1\n2\n3" | |
test2 = [1, 2, 3] | |
def iterate (obj) | |
method = obj.is_a?(Array) ? :each : :each_line | |
obj.send(method) do |line| | |
yield line | |
end | |
end |
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
[{ | |
"name": "Whiskas", | |
"price": 500, | |
"eatenBy": ["Pussy", "Frank II"] | |
}, | |
{ "name": "Kattegreier", | |
"price": 1000, | |
"eatenBy": ["Destructor"] | |
}, | |
{ |
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 Lamell extends Component { | |
render () { | |
const { content, lamell, title } = this.props; | |
// etc. | |
} | |
} | |
class Form extends Component { |
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 React, { Component } from 'react' | |
import Lamell from './Lamell.js' | |
class Lamel extends Component { | |
} | |
export default class LamelModel extends Component { | |
onClick (lamelId) { |
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 function bind(self, ...methods) { | |
methods.map(meth => self[meth] = self[meth].bind(self)); | |
} |
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
'use strict'; | |
let i = 0; | |
while(i < 100000) { | |
console.log(i) | |
i++; | |
} | |
// Hva er raskest av å kjøre denne i browseren eller node? |