Skip to content

Instantly share code, notes, and snippets.

🍩
👀

Will withoutwax

🍩
👀
Block or report user

Report or block withoutwax

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@withoutwax
withoutwax / hyper.js
Created Jul 30, 2019
Hyper Configuration
View hyper.js
// Future versions of Hyper may add additional config options,
// which will not automatically be merged into this file.
// See https://hyper.is#cfg for all currently supported options.
module.exports = {
config: {
// choose either `'stable'` for receiving highly polished,
// or `'canary'` for less polished but more frequent updates
updateChannel: 'stable',
View smooth-animation.css
div {
-webkit-transition: all 2s cubic-bezier(0.165, 0.84, 0.44, 1);
transition: all 2s cubic-bezier(0.165, 0.84, 0.44, 1);
}
div::after {
-webkit-transition: all 2s cubic-bezier(0.165, 0.84, 0.44, 1);
transition: all 2s cubic-bezier(0.165, 0.84, 0.44, 1);
}
div:hover {
color: inherit;
View modular.css
/* MODULAR CSS */
/* PADDING */
.padding-top-10 {padding-top: 10px;}
.padding-top-20 {padding-top: 20px;}
.padding-top-30 {padding-top: 30px;}
.padding-top-40 {padding-top: 40px;}
.padding-top-50 {padding-top: 50px;}
.padding-top-60 {padding-top: 60px;}
.padding-top-70 {padding-top: 70px;}
.padding-top-80 {padding-top: 80px;}
View index.html
<html>
<head>
<meta charset="utf-8" />
<title>The Legend of Dad - Quest for Milk</title>
<script type="text/javascript" src="https://dl.dropboxusercontent.com/u/21942824/simple-rpg/lib/phaser.min.js"></script>
<!-- <script type="text/javascript" src="game-functions/social.js"></script>
@withoutwax
withoutwax / git-dev-master.markdown
Created Jan 12, 2018
Guide on how to work with development branch and merge with master
View git-dev-master.markdown

Working with development branch and merge with master

Sometimes you want to experiment with a code which you have on your master branch but not want to save it to master branch. In this case, you can create another branch where you can experiment with ease - and if you are satisfied, you can merge the experiment to the master branch later.

Creating development branch

git branch development
git checkout development
git add .
git commit -m "Initial commit on development branch"
git push origin development
@withoutwax
withoutwax / ror-api.markdown
Last active May 8, 2019
Guide on how to create an API-Only Application with Ruby on Rails 5
View ror-api.markdown

Creating an API-Only Application with Ruby on Rails

01 - Create a new API-only Rails app

rails new ror-app-name --api

02 - Basic Scaffold

01 - Model

This step is for creating a very basic level of model for us to work in. If you know already, or wish to apply your own custom models with relationships you can skip this step.

@withoutwax
withoutwax / custom_fields_devise.markdown
Last active Oct 23, 2019
Adding Custom Fields to Devise
View custom_fields_devise.markdown

Adding Custom Fields to Devise

Before doing anything, please check the versions of the gem files:

gem 'rails', '~> 5.1.4'
gem 'devise', '~> 4.4.0'

Disclaimer - This solution may not work with older versions of rails and devise. Versions listed above were the latest versions of gems which I was using at the time of creation and tests. (10 Jan 2018)

You can’t perform that action at this time.