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 'package:flutter/material.dart'; | |
void main() => runApp(const MyApp()); | |
class MyApp extends StatelessWidget { | |
const MyApp({Key? key}) : super(key: key); | |
static const String _title = 'AppBarのtitleを改行する'; | |
@override |
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
void main() { | |
var list = [1, 2, 3]; | |
print(list); | |
} |
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
module.exports = function(grunt) { | |
grunt.initConfig({ | |
pkg: grunt.file.readJSON('package.json'), | |
sass: { | |
build: { | |
options: { | |
style: 'expanded' | |
}, | |
src: 'scss/main.scss', | |
dest: 'css/main.css' |
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
/* sass test main.scss */ | |
// this comment is sass code only | |
@import "global"; | |
@import "function"; | |
#main { | |
width: 90%; | |
background: url("#{$imgDir}bg.png"); |
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
# SASS | |
$ sass --style expanded scss/main.scss:css/main.css | |
$ sass --style expanded --watch scss:css | |
#Grunt | |
$ git clone git://github.com/creationix/nvm.git ~/.nvm | |
$ source ~/.nvm/nvm.sh | |
$ nvm ls-remote | |
$ nvm install v0.10.31 | |
$ nvm alias default v0.10.31 |
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
#gem | |
gem install rails --no-ri --no-rdoc | |
#rvm | |
\curl -sSL https://get.rvm.io | sudo bash -s stable | |
sudo usermod -a -G rvm root | |
sudo gpasswd -a vagrant rvm | |
sudo gpasswd -a apache rvm | |
source /etc/profile.d/rvm.sh | |
sudo cat /etc/passwd |
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 Calc | |
def initialize(logger) | |
@logger = logger | |
end | |
def add(a,b) | |
p = a + b | |
@logger.log | |
return 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
require "calc" | |
RSpec.describe Calc do | |
# before do | |
# @calc = Calc.new | |
# end | |
subject(:calc) { | |
#message expectation if not called -> test fail | |
logger = double('logger') | |
expect(logger).to receive(:log) |
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
package sample; | |
import flash.display.Sprite; | |
import flash.events.Event; | |
import flash.events.IOErrorEvent; | |
import flash.display.BitmapData; | |
import flash.display.Bitmap; | |
import openfl.Assets; |
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
package sample; | |
import flash.display.Sprite; | |
import flash.text.TextField; | |
import flash.text.TextFormat; | |
import flash.text.TextFormatAlign; | |
import flash.text.Font; | |
import openfl.Assets; | |
import flash.events.Event; |
NewerOlder