Skip to content

Instantly share code, notes, and snippets.

View hikarock's full-sized avatar
🌏
Working from home

Hikari Tsuchiya hikarock

🌏
Working from home
View GitHub Profile
@hikarock
hikarock / twitter-gas.js
Last active December 30, 2020 04:42
twitter-gas.js
var PROJECT_KEY = '';
var TWITTER_CONSUMER_KEY = '';
var TWITTER_CONSUMER_SECRET = '';
function trigger() {
search('東京オリンピック', 0);
}
function reset() {
var service = getService();
@hikarock
hikarock / README.md
Last active April 19, 2016 15:32
twitter-gas.js スクリプトの使い方

twitter-gas.js スクリプトの使い方

twitter-gas.js の利用方法です。

1.

  • スプレッドシートを作成して、名前をつける。
  • ツール> スクリプトエディタ を開く
  • プロジェクト名をつける
  • リソース > ライブラリ > ライブラリを検索 に以下を入力して選択ボタンを押下。
@hikarock
hikarock / gist:947bfef62ee4f1284aa6
Last active August 29, 2015 14:14
モーダルの背景のスクロールを抑制する
$(window).on('touchmove.noScroll', function(evt) {
if ($(evt.target).hasClass('modal-class-name')) {
return;
}
evt.preventDefault();
})
@hikarock
hikarock / gist:818b67c91e98fd74929f
Created August 17, 2014 10:49
rendr-examplesメモ

rendr-examplesを眺めてみたメモ。

00. simple

基本的な構成。npm install & grunt serverhttp://localhost:3030で起動する(以下のexampleも同様)。

01. config

00ではindex.jsに直接書かれていたdataAdapterConfig/configディレクトリ内のファイルに分離。 NODE_ENVの値で本番/開発環境の設定ファイル切り替えを行う

```
@charset "UTF-8";
@import "../../public/components/foundation/scss/foundation/variables";
```
こういうやつを、
```
@charset "UTF-8";
@hikarock
hikarock / glyphicons_500_booklog.png
Last active December 18, 2015 07:49
Octopress用のブクログアイコン
glyphicons_500_booklog.png
module.exports = function(grunt) {
grunt.initConfig({
pkg: grunt.file.readJSON("package.json"),
uglify: {
dist: {
src: ["public/js/remp.js"],
dest: "public/js/remp.min.js"
}
},
// This File is imported last, and will override other styles in the cascade
// Add styles here to make changes without digging in too much
/*
* Fix: list margin
*/
@if $indented-lists == false {
@media only screen and (min-width: 768px) {
ul, ol { margin-left: 1.5em; }
}
@hikarock
hikarock / jsdoit.css
Created May 29, 2013 15:46
BACKBONE.JSガイドブック1-3
* {
margin: 0;
padding: 0;
border: 0;
}
body {
background: #ddf;
font: 30px sans-serif;
}
@hikarock
hikarock / jsdoit.css
Created May 29, 2013 15:05
setTimeoutでdebounce
* {
margin: 0;
padding: 0;
border: 0;
}
body {
background: #ffd;
font: 30px sans-serif;
}