Skip to content

Instantly share code, notes, and snippets.

View steveclarke's full-sized avatar

Steve Clarke steveclarke

View GitHub Profile

Install Android SDK CLI Ubuntu 20.04 WSL2 (Work in Progress)

Install Java 8

sudo apt install openjdk-8-jdk-headless

Android SDK

@steveclarke
steveclarke / components.js
Created September 26, 2019 12:15
Globally register your custom components in Quasar. Add this file to your /boot dir
// Globally register all base components for convenience, because they
// will be used very frequently. Components are registered using the
// PascalCased version of their file name.
import upperFirst from 'lodash/upperFirst'
import camelCase from 'lodash/camelCase'
export default async ({ Vue }) => {
console.log('loading components')
// https://webpack.js.org/guides/dependency-management/#require-context
@steveclarke
steveclarke / gist:d7412ee4d38b712c8226b156d1260354
Created February 23, 2018 21:50 — forked from forgotpw1/gist:0dd4df2674a2f302fb0b3ffb3d1fb5df
Upgrading quasar framework - Maintaining old quasar-cli on upgrades
Install the 0.14-compatible quasar-cli as a dev dependency in your legacy project:
npm install --save-dev quasar-cli@0.6.5
this will place the legacy cli in your project node_modules
to run quasar for your project:
npx quasar dev etc
npx is a wrapper that runs ./node_modules/.bin/quasar
source: steveclarke @ quasar discourse channel 2.23.2018
@steveclarke
steveclarke / cinst.bat
Last active August 29, 2015 14:01 — forked from beakr/cinst.bat
cinst GoogleChrome
cinst 7zip
cinst git.install
cinst putty
cinst ruby
cinst ruby.devkit
cinst RubyMine
cinst SourceTree
box: wercker/ubuntu12.04-ruby1.9.3
services:
- wercker/postgresql
build:
# The steps that will be executed on build
steps:
- script:
name: Enable virtual display
code: |-
# Start xvfb which gives the context an virtual display
source :rubygems
# We are not loading Active Record, nor Active Resources etc.
# We can do this in any app by simply replacing the rails gem
# by the parts we want to use.
gem "actionpack", "~> 4.0"
gem "railties", "~> 4.0"
gem "tzinfo"
# Let's use thin
@steveclarke
steveclarke / jsbin.sodav.css
Created February 12, 2014 00:07
Company / Jobs
body {
font-family: arial;
}
worker_processes Integer(ENV["WEB_CONCURRENCY"] || 3)
timeout 15
preload_app true
before_fork do |server, worker|
Signal.trap 'TERM' do
puts 'Unicorn master intercepting TERM and sending myself QUIT instead'
Process.kill 'QUIT', Process.pid
end
@steveclarke
steveclarke / seventemplate.rb
Last active December 15, 2015 15:19
generator for default Rails project
gem 'thin'
gem 'sevenhelpers', git: 'https://github.com/sevenview/sevenhelpers.git'
#gem_group :assets do
# gem 'zurb-foundation', '~>4.0.0'
#end
gem_group :test, :development, :staging do
gem 'factory_girl_rails', '~> 4.2'
gem 'ffaker'
=Navigating=
visit('/projects')
visit(post_comments_path(post))
=Clicking links and buttons=
click_link('id-of-link')
click_link('Link Text')
click_button('Save')
click('Link Text') # Click either a link or a button
click('Button Value')