Skip to content

Instantly share code, notes, and snippets.

@zaki-yama
zaki-yama / customize.js
Last active March 14, 2024 17:50
kintone-vue-customize.js
/*
* kintone x Vuejs
* Copyright (c) 2016 Cybozu
*
* Licensed under the MIT License
* https://opensource.org/license/mit/
*/
(function ($) {
"use strict";
const { createApp } = Vue;
@zaki-yama
zaki-yama / HtmlLangTest.page
Created October 20, 2017 11:50
Visualforceにコントローラー経由でhtml lang属性をセットできるか検証
<apex:page showHeader="false" applyHtmlTag="false" doctype="html-5.0" controller="HtmlLangTestController">
<html lang="{!lang}">
<head></head>
<body>hello</body>
</html>
</apex:page>
@zaki-yama
zaki-yama / 0_reuse_code.js
Created May 24, 2016 02:51
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
@zaki-yama
zaki-yama / webpack.config.js
Created May 4, 2016 14:43
webpack.config.js for React App
const webpack = require('webpack');
module.exports = {
context: __dirname + '/src',
entry: {
javascript: './index.js',
html: './index.html'
},
output: {
@zaki-yama
zaki-yama / gulpfile.js
Created January 27, 2016 08:13
Lightning Component Dev Environment with gulp × JSforce
var componentName = 'HereIsYourComponentName';
var gulp = require('gulp');
var zip = require('gulp-zip');
var browserify = require('browserify');
var debowerify = require('debowerify');
var source = require('vinyl-source-stream');
var deamd = require('deamd');
var through2 = require('through2');
var jsforce = require('jsforce');
@zaki-yama
zaki-yama / README.md
Last active March 6, 2023 14:17
[Python] Salesforce OAuth flow example in Python3.
@zaki-yama
zaki-yama / exportDialog.html
Last active November 29, 2015 15:49
Google Apps ScriptでGitHubのIssueをシートに出力する
<!DOCTYPE html>
<html>
<head>
<base target="_top">
</head>
<body>
<form id="form">
<select name="repos">
<? for (var i = 0; i < repos.length; i++) { ?>
<option value="<?= repos[i] ?>"><?= repos[i] ?></option>
@zaki-yama
zaki-yama / private.xml
Created September 4, 2015 07:10
[Karabiner]vimでEsc(Ctrl+[)を押した時に自動的に日本語入力モードを解除する
<?xml version="1.0"?>
<root>
<appdef>
<appname>iTERM2</appname>
<equal>com.googlecode.iterm2</equal>
</appdef>
<appdef>
<appname>MACVIM</appname>
<equal>org.vim.MacVim</equal>
</appdef>
@zaki-yama
zaki-yama / with_statement.py
Last active August 29, 2015 14:27
[python] withステートメントのサンプル
# -*- coding: utf-8 -*-
class Foo(object):
def bar(self):
print self.foo
def __init__(self, foo):
u"""今回直接は関係ない"""
print '__init__'
self.foo = foo
@zaki-yama
zaki-yama / Person.coffee
Last active August 29, 2015 14:26
ES6とTypeScript、CoffeeScriptの比較
### CoffeeScript ###
class Person
# コンストラクタ & プロパティ
constructor: (@name) ->
# インスタンスメソッド
greet: () ->
console.log 'Hello, I\'m ' + this.name
# スタティックメソッド