##References
##Create Models
Create tables:
rails g model Location
rails g model User
rails g model Checkin
##References
##Create Models
Create tables:
rails g model Location
rails g model User
rails g model Checkin
| System.IO.Directory.SetCurrentDirectory __SOURCE_DIRECTORY__ | |
| // The following DLLs were fetched using NuGet | |
| #r @".\packages\FsCheck.0.9.2.0\lib\net40-Client\FsCheck.dll" | |
| #r @".\packages\NUnit.2.6.3\lib\nunit.framework.dll" | |
| open FsCheck | |
| open NUnit.Framework | |
| // ====================================== |
#Simple Authentication with Bcrypt
This tutorial is for adding authentication to a vanilla Ruby on Rails app using Bcrypt and has_secure_password.
The steps below are based on Ryan Bates's approach from Railscast #250 Authentication from Scratch (revised).
You can see the final source code here: repo. I began with a stock rails app using rails new gif_vault
##Steps
Include Weather Icons in your app: https://github.com/erikflowers/weather-icons
Include the below JSON in your application, for example purposes, lets assume it's a global named weatherIcons.
Make a request to OpenWeatherMap:
req = $.getJSON('http://api.openweathermap.org/data/2.5/weather?q=London,uk&callback=?');Once in a while, you may need to cleanup resources (containers, volumes, images, networks) ...
// see: https://github.com/chadoe/docker-cleanup-volumes
$ docker volume rm $(docker volume ls -qf dangling=true)
$ docker volume ls -qf dangling=true | xargs -r docker volume rm
| List() | |
| var list = Immutable.List([1,2,3]) | |
| // [1, 2, 3] | |
| List.isList() | |
| Immutable.List.isList(list) | |
| // true | |
| List.of() | |
| var list = Immutable.List.of(1,2,3); |
| <!-- Example #1 - no styling --> | |
| Made with ❤ in Switzerland | |
| Made with ♥ in Switzerland | |
| Made with ♡ in Switzerland | |
| Made with ❤️ in Switzerland | |
| Made with ♥️ in Switzerland | |
| <!-- Example #2 - inline-styled ❤ --> | |
| Made with <span style="color: #e25555;">♥</span> in Switzerland | |
| Made with <span style="color: #e25555;">♥</span> in Switzerland |
To setup your computer to work with *.test domains, e.g. project.test, awesome.test and so on, without having to add to your hosts file each time.
| extends KinematicBody2D | |
| export var move_speed = 200.0 | |
| var velocity := Vector2.ZERO | |
| export var jump_height : float | |
| export var jump_time_to_peak : float | |
| export var jump_time_to_descent : float |
You also might wanna just use Whisky which does this automatically
This guide works on macOS 13.4+ using Command Line Tools for XCode 15 Beta!
In the recent WWDC, Apple announced and released the "game porting toolkit", which upon further inspection this is just a modified version of CrossOver's fork of wine which is a "compatibility layer" that allows you to run Windows applications on macOS and Linux.