Skip to content

Instantly share code, notes, and snippets.

View davidji99's full-sized avatar
🎯
Focusing

DJ davidji99

🎯
Focusing
View GitHub Profile
require 'rubygems'
require 'mechanize'
FIRST_NAME = 'FIRST_NAME'
LAST_NAME = 'LAST_NAME'
PHONE = 'PHONE'
EMAIL = '[email protected]'
PARTY_SIZE = 2
SCHEDULE_RANGE = { :start_time => '19:00', :end_time => '20:30' }

Keybase proof

I hereby claim:

  • I am davidji99 on github.
  • I am davidji (https://keybase.io/davidji) on keybase.
  • I have a public key ASDlpknrwY1RSIl0k31GofavDMNcEYNAHhZyrT-BYFto0Ao

To claim this, I am signing this object:

@davidji99
davidji99 / restful_api.md
Created February 1, 2021 06:03 — forked from oojikoo-gist/restful_api.md
rails: restful api basecontroller

The guide will assume that we are dealing with a pre-existing application that has two models: Album and Artist. An album belongs to an artist and an artist has many albums.

Requirements

This guide is for Rails 4.0.0+ only.

These gems can always be replaced with alternatives, but they will be good for demonstration. Add the following gems to your Gemfile:

@davidji99
davidji99 / Convert .mov or .MP4 to .gif.md
Created October 29, 2021 06:44 — forked from SheldonWangRJT/Convert .mov or .MP4 to .gif.md
Convert Movie(.mov) file to Gif(.gif) file in one command line in Mac Terminal

This notes is written by Sheldon. You can find me with #iOSBySheldon in Github, Youtube, Facebook, etc.

Need

Convert .mov/.MP4 to .gif

Reason

As a developer, I feel better to upload a short video when I create the pull request to show other viewers what I did in this PR. I tried .mov format directly got after finishing recording screen using Quicktime, however, gif offers preview in most web pages, and has smaller file size.

This is not limited to developer, anyone has this need can use this method to convert the files.