- Create repo on GitHub where you'll put your files.
- Use jsDeliver or statically to get your assets.
Here is repo I'm using:
https://github.com/jcubic/static
And links to files look like this:
Here is repo I'm using:
https://github.com/jcubic/static
And links to files look like this:
JavaScript warnings are these messages being displayed in yellow or red in your JavaScript console or terminal. They make no sense at all in general but they are a good indication of the health of your app. The points below will give you a general idea of how many warnings you should expect in your app:
0 warnings: the app is not working at all
5 warnings: app is probably starting but crashing soon after - try to find why it crashes. You'd think you could read the warnings to learn why it doesn't work, but that's not what warnings are for.
50 warnings: That's the soft spot - most likely everything's running smoothly
| // ==UserScript== | |
| // @name No YouTube Volume Normalization | |
| // @namespace https://gist.github.com/abec2304 | |
| // @match https://www.youtube.com/* | |
| // @match https://music.youtube.com/* | |
| // @grant GM_addElement | |
| // @version 2.74 | |
| // @author abec2304 | |
| // @description Enjoy YouTube videos at their true volume | |
| // @run-at document-start |
| // original gist | |
| const shuffleArray = arr => arr.sort(() => Math.random() - 0.5); | |
| // fully random by @BetonMAN | |
| const shuffleArray = arr => arr | |
| .map(a => [Math.random(), a]) | |
| .sort((a, b) => a[0] - b[0]) | |
| .map(a => a[1]); | |
| shuffleArray([1, 2, 3]) //[3, 1, 2] |
| #---------------------------------------# | |
| # Project Ignores # | |
| #---------------------------------------# | |
| # output | |
| /.temp | |
| /.tmp | |
| /build | |
| /dist |
This can be used to daemonize anything that would normally run in the foreground; I picked Redis. Put this in /etc/systemd/system/redis.service:
[Unit]
Description=Redis
After=syslog.target
[Service]
ExecStart=/usr/local/bin/redis-server /etc/redis/redis.conf
RestartSec=5s
| cat <<EOF >> /etc/apt/sources.list | |
| deb http://archive.ubuntu.com/ubuntu precise main restricted universe | |
| deb http://archive.ubuntu.com/ubuntu precise-updates main restricted universe | |
| deb http://security.ubuntu.com/ubuntu precise-security main restricted universe multiverse | |
| EOF | |
| apt-get update | |
| apt-get purge \ | |
| apache2 \ |
| require 'rails_helper' | |
| RSpec.describe TodosController, :type => :controller do | |
| describe "GET #index" do | |
| #describe "POST #create" do | |
| #describe "GET #show" do | |
| #describe "PATCH #update" do (or PUT #update) | |
| #describe "DELETE #destroy" do | |
| #describe "GET #new" do |