Skip to content

Instantly share code, notes, and snippets.

View ukoasis's full-sized avatar

Yuki Yamashina ukoasis

View GitHub Profile
@mecid
mecid / Calendar.swift
Last active May 8, 2024 13:30
SwiftUI Calendar view using LazyVGrid
import SwiftUI
extension Calendar {
func generateDates(
inside interval: DateInterval,
matching components: DateComponents
) -> [Date] {
var dates: [Date] = []
dates.append(interval.start)
@Yama-Tomo
Yama-Tomo / 0.how_to_introduced_mutagen_in_rails.md
Last active August 11, 2021 06:33
how to introduced mutagen in rails
  • mutagen をインストールする
$ brew install mutagen-io/mutagen/mutagen
  • mutagen.yml をプロジェクトルートへ作成する
sync:
@voluntas
voluntas / saikyo.rst
Last active September 13, 2023 02:33
ぼくのかんがえたさいきょうの超低遅延大規模配信

ぼくのかんがえたさいきょうの超低遅延大規模配信

更新

2018-08-20

作者

@voluntas

バージョン

18.8.3

URL

https://voluntas.github.io/

@yuroyoro
yuroyoro / development.js
Created February 15, 2017 02:16
webpakcer.gemにscssのビルドを加えて、大きめの依存ライブラリを別ファイルに分けて吐くようにしたwebpack.cnofig
// 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',
@ytakky2014
ytakky2014 / use_docomo.php
Created November 28, 2016 10:56
Use Docomo Image API Sample
<?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)
@diessica
diessica / compiler.js
Created May 31, 2016 16:50
Mocha compiler to ignore extensions
/*eslint-disable*/
'use strict'
var babel = require('babel-core/register');
function noop() {
return null;
}
require.extensions['.scss'] = noop;
require.extensions['.css'] = noop;
@goncalvesjoao
goncalvesjoao / Gemfile
Last active November 13, 2020 01:52
Changes you need to make in order to make Devise use JWT Header Authentication
# Add the "https://github.com/jwt/ruby-jwt" gem to your "Gemfile"
gem 'jwt'
@rodrigoddalmeida
rodrigoddalmeida / ecto_soft_delete.exs
Last active August 29, 2017 16:47
Soft Delete in Ecto
model = Repo.get!(Model, id)
Ecto.Changeset.change(model)
|> Ecto.Model.Timestamps.put_timestamp(:deleted_at, Ecto.DateTime, true)
|> Repo.update
@parris
parris / browserify.coffee
Created August 4, 2014 05:31
Gulp using coffee-reactify
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'],
}))