hipchat-notify用の設定。werckerのApplication Settings (右上の歯車アイコン) → Environment variables から、HIPCHAT_TOKENとHIPCHAT_ROOM_IDを追加する。
- HIPCHAT_TOKEN
- Text, Protected
- https://www.hipchat.com/account/api で作ったAPIトークンを設定
- Label: てきとう
| <apex:page standardController="Account"> | |
| <div style="display: none;">{!Account.CreatedDate}</div> | |
| <apex:outputField value="{!Account.CreatedDate}"/> | |
| <apex:outputText value="{0,date}"> | |
| <apex:param value="{!Account.CreatedDate}"/> | |
| </apex:outputText> | |
| </apex:page> |
| public without sharing class FindHelper { | |
| private static Map<Schema.SObjectType, Schema.SObjectField[]> fieldCache = new Map<Schema.SObjectType, Schema.SObjectField[]>(); | |
| public static void beforeSave(SObject[] xs, Schema.SObjectField searchField) { | |
| Schema.SObjectField[] copyingFields = copyingFieldsOf(xs.getSObjectType()); | |
| Integer length = searchField.getDescribe().getLength(); | |
| for (SObject e : xs) { | |
| putSearchField(e, copyingFields, searchField, length); | |
| } |
hipchat-notify用の設定。werckerのApplication Settings (右上の歯車アイコン) → Environment variables から、HIPCHAT_TOKENとHIPCHAT_ROOM_IDを追加する。
| function(i) { | |
| var fn = function(sum, e) { | |
| if (typeof e === typeof 0) return sum + e; | |
| if (e instanceof Array) return e.reduce(fn, sum); | |
| return sum; | |
| }; | |
| return i.reduce(fn, 0); | |
| }; |
| <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> |
| document.querySelector('#phHeaderLogoImage').src = 'http://pic.prepics-cdn.com/f2de00c74d43/17946611.jpeg' |
| require 'json' | |
| require 'json/pure/generator' | |
| module Generator | |
| module GeneratorMethods | |
| (JSON::Pure::Generator::GeneratorMethods.constants - %i(Array Hash Integer)).each do |constant| | |
| const_set constant, JSON::Pure::Generator::GeneratorMethods.const_get(constant) | |
| end | |
| %i(Fixnum Bignum).each do |constant| |
| require 'json' | |
| require 'json/pure/generator' | |
| module JSON::Pure::Generator::GeneratorMethods | |
| %i(Fixnum Bignum).each do |constant| | |
| const_set constant, Integer | |
| end | |
| module Array | |
| alias_method :pure_to_json, :to_json |
| <?xml version="1.0" encoding="UTF-8"?> | |
| <!DOCTYPE keyboard PUBLIC "" "file://localhost/System/Library/DTDs/KeyboardLayout.dtd"> | |
| <!--Created by Ukelele version 2.2.8 on 2015-10-11 at 20:11 (JST)--> | |
| <!--Last edited by Ukelele version 2.2.8 on 2015-10-12 at 00:37 (JST)--> | |
| <keyboard group="0" id="11413" name="ABC (option keystrokes blank)" maxout="1"> | |
| <layouts> | |
| <layout first="0" last="17" modifiers="f4" mapSet="16c"/> | |
| <layout first="18" last="18" modifiers="f4" mapSet="984"/> | |
| <layout first="21" last="23" modifiers="f4" mapSet="984"/> | |
| <layout first="30" last="30" modifiers="f4" mapSet="984"/> |
| class Picture < ActiveRecord::Base | |
| belongs_to :imageable, polymorphic: true | |
| end | |
| class Product < ActiveRecord::Base | |
| end | |
| class PublicProduct < Product | |
| has_one :picture, as: :imageable | |
| end |