| 更新: | 2018-08-20 |
|---|---|
| 作者: | @voluntas |
| バージョン: | 18.8.3 |
| URL: | https://voluntas.github.io/ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| gulp = require 'gulp' | |
| browserify = require 'gulp-browserify' | |
| rename = require 'gulp-rename' | |
| gulp.task 'js', -> | |
| gulp.src('./public/src/app.coffee', { read: false }) | |
| .pipe(browserify({ | |
| transform: ['coffee-reactify'], | |
| extensions: ['.coffee'], | |
| })) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| model = Repo.get!(Model, id) | |
| Ecto.Changeset.change(model) | |
| |> Ecto.Model.Timestamps.put_timestamp(:deleted_at, Ecto.DateTime, true) | |
| |> Repo.update |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Add the "https://github.com/jwt/ruby-jwt" gem to your "Gemfile" | |
| gem 'jwt' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /*eslint-disable*/ | |
| 'use strict' | |
| var babel = require('babel-core/register'); | |
| function noop() { | |
| return null; | |
| } | |
| require.extensions['.scss'] = noop; | |
| require.extensions['.css'] = noop; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| $file = file_get_contents($image_path); | |
| $ch = curl_init(); | |
| curl_setopt_array($ch,[ | |
| CURLOPT_URL => $api_url . '?APIKEY=' . $api_key, | |
| CURLOPT_RETURNTRANSFER => true, | |
| CURLOPT_POST => true, | |
| CURLOPT_POSTFIELDS => [ | |
| 'modelName' => 'food', | |
| 'image' => new CURLFile($image_path) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // Note: You must restart bin/webpack-watcher for changes to take effect | |
| var path = require('path') | |
| var webpack = require('webpack') | |
| var merge = require('webpack-merge') | |
| var config = require('./shared.js') | |
| var devconfig = { | |
| devtool: 'sourcemap', |
- mutagen をインストールする
$ brew install mutagen-io/mutagen/mutagen- mutagen.yml をプロジェクトルートへ作成する
sync:
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import SwiftUI | |
| extension Calendar { | |
| func generateDates( | |
| inside interval: DateInterval, | |
| matching components: DateComponents | |
| ) -> [Date] { | |
| var dates: [Date] = [] | |
| dates.append(interval.start) |