Skip to content

Instantly share code, notes, and snippets.

View ChangJoo-Park's full-sized avatar
:octocat:
🌱

ChangJoo Park(박창주) ChangJoo-Park

:octocat:
🌱
View GitHub Profile
# app / controllers / application_controller.rb
class ApplicationController < ActionController::Base
# Prevent CSRF attacks by raising an exception.
# For APIs, you may want to use :null_session instead.
protect_from_forgery with: :exception
before_filter :configure_permitted_parameters, if: :devise_controller?
protected
def configure_permitted_parameters
@acidsound
acidsound / fabricjs.html
Created December 7, 2014 22:24
fabricjs on meteor
<head>
<title>fabricjs</title>
<script src="fabric.js"></script>
</head>
<body>
<h1>Fabric</h1>
{{> main}}
</body>
const path = require('path')
const fs = require('fs-extra')
const {debug, log, ERROR} = require('../debug')('NuxtGenerator')
var resolve = path.resolve
process.env.DEBUG = 'nuxt:*,Vuetal:*'
class NuxtGenerator {
@Elevista
Elevista / vueLodashArray.js
Last active December 19, 2017 16:36
lodash로 vue 모델의 배열을 다룰때 뮤테이션 감지를 시키기 위해 기본 함수를 래핑합니다.
let lodash = _.runInContext()
export let wrapLodashArrForVue = _(['pull', 'pullAll', 'pullAllBy', 'pullAllWith', 'pullAt', 'remove'])
.map(fnName => {
let fn = lodash[fnName]
return [
fnName,
function (v, …args) {
let ret = fn(v, …args)
if (v instanceof Array) v.push()
return ret

루비 코드 리딩

뭔가 좀 자기소개가 길다. 6분지났는데 아직 본론도 안들어감

자기 경력 소개 컨퍼런스 다닌거 등등..

이 세션은 기술적인 이야기는 없을거다

  1. 왜 루비 코드를 읽어야 하는가?
@amk221
amk221 / formatter.js
Last active May 8, 2018 16:08
Sequelize JSON API formatter
/**
* Outputs the result of a Sequelize query for JSONAPI
*
* e.g.
* let foo = yield models.Foo.findById(this.params.fooId);
* this.body = output(foo);
*
* Results in:
*
* {
compile group: 'com.amazonaws', name: 'aws-java-sdk-ses', version: "${awsSesVersion}"
@HoverBaum
HoverBaum / .travis.yml
Created August 11, 2016 03:19
Deploy Hexo blog using Travis.
# Deploy hexo site by travis-ci
# https://github.com/jkeylu/deploy-hexo-site-by-travis-ci
# LICENSE: MIT
#
# 1. Copy this file to the root of your repository, then rename it to '.travis.yml'
# 2. Replace 'YOUR NAME' and 'YOUR EMAIL' at line 29
# 3. Add an Environment Variable 'DEPLOY_REPO'
# 1. Generate github access token on https://github.com/settings/applications#personal-access-tokens
# 2. Add an Environment Variable on https://travis-ci.org/{github username}/{repository name}/settings/env_vars
# Variable Name: DEPLOY_REPO

Asciidoc 으로 전자책 쓰기 - SpringCamp 2016 LETS


@yann-yinn
yann-yinn / AppNavigation.specs.js
Last active July 31, 2018 18:47
How to unit test a Vue.js / Nuxt.js component that uses <nuxt-link> and store
import Vue from 'vue'
import AppNavigation from '~/components/AppNavigation'
// Mock our router, store and nuxt-link
import Vuex from 'vuex'
import storeCreate from '~/store'
import VueRouter from 'vue-router'
import NuxtLink from '~/.nuxt/components/nuxt-link'
Vue.use(VueRouter)
Vue.use(Vuex)