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 Fibonacci = function* (i = 1, j = 1) { | |
yield i; | |
yield j; | |
while (true) { | |
yield* Fibonacci(i + j, i + j + j); | |
} | |
}; | |
const f = Fibonacci(); | |
for (let i = 0; i < 20; i++) { |
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
<?xml version="1.0"?> | |
<!DOCTYPE module PUBLIC | |
"-//Puppy Crawl//DTD Check Configuration 1.3//EN" | |
"http://checkstyle.sourceforge.net/dtds/configuration_1_3.dtd"> | |
<!-- | |
Checkstyle configuration that checks the sun coding conventions from: | |
- the Java Language Specification at | |
http://java.sun.com/docs/books/jls/second_edition/html/index.html |
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
buildscript { | |
ext { | |
kotlinVersion = '1.1.4-3' | |
springBootVersion = '2.0.0.M4' | |
} | |
repositories { | |
mavenCentral() | |
maven { url "https://repo.spring.io/snapshot" } | |
maven { url "https://repo.spring.io/milestone" } | |
} |
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 AddHeroImages < ActiveRecord::Migration | |
def change | |
{image_mime_type: nil, image_name: "carousel-image1.jpg", image_size: 1937453, image_width: 1830, image_height: 996, image_uid: "2014/12/15/17/37/48/423/carousel_image1.jpg", image_title: "MICS5_Photo_SurveyDesign_Workshop_Dakar_April_2013", image_alt: "MICS5_Photo_SurveyDesign_Workshop_Dakar_April_2013"}, | |
{image_mime_type: nil, image_name: "carousel-image2.jpg", image_size: 1560842, image_width: 1830, image_height: 996, image_uid: "2014/12/15/17/42/42/113/carousel_image2.jpg", image_title: "MICS5_Photo_SurveyDesign_Workshop_Amman_April_2013", image_alt: "MICS5_Photo_SurveyDesign_Workshop_Amman_April_2013"}, | |
{image_mime_type: nil, image_name: "carousel-image3.jpg", image_size: 1035076, image_width: 1830, image_height: 996, image_uid: "2014/12/15/17/44/39/205/carousel_image3.jpg", image_title: "MICS5_Kathmandu_SurveyDesign_March2013", image_alt: "MICS5_Kathmandu_SurveyDesign_March2013"} | |
Refinery::Image.create!( | |
image_mi |