Skip to content

Instantly share code, notes, and snippets.

View z-ohnami's full-sized avatar
🤾‍♂️
enjoying!!

Makoto Ohnami z-ohnami

🤾‍♂️
enjoying!!
View GitHub Profile
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
void main() {
var list = [1, 2, 3];
print(list);
}
@z-ohnami
z-ohnami / gist:44240b169e60ce0ac6bd
Created September 11, 2014 16:48
Gruntfile.js sample
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'
/* sass test main.scss */
// this comment is sass code only
@import "global";
@import "function";
#main {
width: 90%;
background: url("#{$imgDir}bg.png");
@z-ohnami
z-ohnami / gist:a0e1be2a6acbe8890204
Last active August 29, 2015 14:06
frontend compile command
# 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
@z-ohnami
z-ohnami / gist:97fcf5ce8971472f1f18
Created September 11, 2014 06:41
ruby&rails command memo
#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
@z-ohnami
z-ohnami / gist:390f92ea42eb015e1775
Created September 11, 2014 06:31
RSpec basic sample Calc Class
class Calc
def initialize(logger)
@logger = logger
end
def add(a,b)
p = a + b
@logger.log
return p
@z-ohnami
z-ohnami / gist:c81c6e97a11ef05af2e4
Created September 11, 2014 06:30
Rspec basic sample
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)
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;
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;