This file contains hidden or 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 window.LoadingModal | |
@modal_html = null | |
@show: (title, message, options={})-> | |
html = """ | |
<div class="modal fade" role="dialog" aria-labelledby="pleaseWaitDialogLabel" aria-hidden="true"> | |
<div class="modal-dialog"> | |
<div class="modal-content"> | |
<div class="modal-header"> | |
<button type="button" class="close" data-dismiss="modal" aria-label="閉じる"> |
This file contains hidden or 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 { | |
project.ext.kotlin_version = '0.6.1673' | |
repositories { | |
mavenCentral() | |
maven { | |
url "https://oss.sonatype.org/content/repositories/snapshots" | |
} | |
} | |
dependencies { | |
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version" |
This file contains hidden or 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
package com.rhizome.KotlinThreadChallenge | |
import kotlin.concurrent.thread | |
import java.util.concurrent.locks.Lock | |
import java.util.concurrent.locks.ReentrantLock | |
import kotlin.concurrent.withLock | |
fun main(args: Array<String>) { | |
val bottle = Bottle() |
This file contains hidden or 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
package sample | |
class Controller { | |
} |
This file contains hidden or 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" encoding="UTF-8"?> | |
<scheme name="PatorashRailscast" version="124" parent_scheme="Default"> | |
<option name="LINE_SPACING" value="1.0" /> | |
<option name="EDITOR_FONT_SIZE" value="12" /> | |
<option name="EDITOR_FONT_NAME" value="Menlo" /> | |
<colors> | |
<option name="CARET_COLOR" value="ffffff" /> | |
<option name="CARET_ROW_COLOR" value="333435" /> | |
<option name="CONSOLE_BACKGROUND_KEY" value="2b2b2b" /> | |
<option name="GUTTER_BACKGROUND" value="2b2b2b" /> |
This file contains hidden or 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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta content="text/html" charset="utf-8"> | |
<title>サンプル</title> | |
<style type="text/css"> | |
</style> | |
</head> | |
<body> | |
<form> |
This file contains hidden or 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
package com.example.HelloKotlin | |
import android.os.Bundle | |
import android.app.Activity | |
public open class MyActivity() : Activity() { | |
public override fun onCreate(savedInstanceState : Bundle?) : Unit { | |
super.onCreate(savedInstanceState) | |
setContentView(R.layout.main) | |
} |
This file contains hidden or 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
# coding: utf-8 | |
require File.expand_path(File.dirname(__FILE__) + "/../../config/environment") | |
require 'erb2slim' | |
namespace :convert do | |
desc "Convert slim from erb" | |
task :erb2slim do | |
Dir::glob("#{Rails.root}/app/views/**/*.html.erb").each do |f| | |
open(f, 'r') {|file| | |
slim_string = Erb2Slim.convert(file.read) |
NewerOlder