Skip to content

Instantly share code, notes, and snippets.

View tyoshikawa1106's full-sized avatar
🇯🇵
TOKYO

Taiki Yoshikawa tyoshikawa1106

🇯🇵
TOKYO
View GitHub Profile
@tyoshikawa1106
tyoshikawa1106 / 01_SampleApp.app
Last active September 30, 2015 14:07
Lightning開発『aura:id』の重複宣言について
<aura:application >
<c:SampleCmp />
</aura:application>
<aura:component implements="force:appHostable" controller="myfirstltngController">
<aura:attribute name="account" type="Account"/>
<aura:handler name="init" action="{!c.init}" value="{!this}"/>
{!v.account.Name}
<button onclick="{!c.save}">click</button>
</aura:component>
@tyoshikawa1106
tyoshikawa1106 / OpportunityCopyBatch.cls
Last active September 13, 2015 07:15
Apex Batch Template
public with sharing class OpportunityCopyBatch implements Database.Batchable<sObject>, Database.Stateful {
/**
* コンストラクタ
*/
public OpportunityCopyBatch() {
}
/**
@tyoshikawa1106
tyoshikawa1106 / Gemfile_Memo
Last active October 26, 2023 11:45
Gemfileの意味をメモ
source 'https://rubygems.org'
ruby '2.2.2' (対象のRubyバージョン)
gem 'rails', '4.2.4' (対象のRailsバージョン)
gem 'bootstrap-sass', '~> 3.3.5' (Bootstrapが使える)
gem 'sprockets', '~> 3.3.3' (Railsで依存関係の管理やコンパイルなどをやってくれる)
(開発環境とテスト環境のみ対象)
group :development, :test do
gem 'sqlite3', '1.3.10' (sqlite3をインストール)
@tyoshikawa1106
tyoshikawa1106 / Gemfile_Favorite
Last active September 7, 2015 06:49
今のところ気に入っているGemile
source 'https://rubygems.org'
ruby '2.2.2'
gem 'rails', '4.2.4'
gem 'bootstrap-sass', '~> 3.3.5'
gem 'sprockets', '~> 3.3.3'
group :development, :test do
gem 'sqlite3', '1.3.10'
gem 'rspec-rails', '2.13.1'
@tyoshikawa1106
tyoshikawa1106 / DesignSystemVF_Tab.page
Created August 30, 2015 16:26
Visualforce & Lightning Design System (Tabs Component)
<apex:page showHeader="true">
<html xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
<head>
<!-- Meta, title, CSS, favicons, etc. -->
<title>Salesforce Lightning Design System Trailhead Module</title>
<meta charset="utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta name="description" content="" />
<meta name="keywords" content="" />
@tyoshikawa1106
tyoshikawa1106 / DesignSystemVF.page
Last active August 30, 2015 15:57
Visualforce & Lightning Design System
<apex:page showHeader="true">
<html xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
<head>
<!-- Meta, title, CSS, favicons, etc. -->
<title>Salesforce Lightning Design System Trailhead Module</title>
<meta charset="utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta name="description" content="" />
<meta name="keywords" content="" />
@tyoshikawa1106
tyoshikawa1106 / LDS_ImageView.page
Last active August 26, 2015 16:34
Visualforceページ開発のLightning Design System 画像表示
<apex:page showHeader="false" standardStylesheets="false" sidebar="false" applyHtmlTag="false" applyBodyTag="false" docType="html-5.0">
<html xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
<head>
<title>Salesforce Lightning Design System Trailhead Module</title>
<apex:stylesheet value="{!URLFOR($Resource.SLDS080, 'assets/styles/salesforce-lightning-design-system-vf.css')}" />
</head>
<body>
<div class="slds">
<span class="slds-avatar slds-avatar--x-small">
<img src="{!URLFOR($Resource.SLDS080, '/assets/images/avatar1.jpg')}" alt="meaningful text" />
@tyoshikawa1106
tyoshikawa1106 / application.html.erb
Created August 11, 2015 07:49
ページ毎にCSSを指定する方法
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<meta name="description" content="" />
<meta name="author" content="" />
<title>Bootstrap Template</title>
<%= stylesheet_link_tag "application", media: "all",
<apex:page standardController="Account">
<apex:outputText value="{0,date}">
<apex:param value="{!Account.CreatedDate}"/>
</apex:outputText><br/>
<apex:outputText value="{0,date}">
<apex:param value="{!Account.CreatedDate}"/>
</apex:outputText>
</apex:page>