The FAQ maintained by Github covers most stumbling blocks, some other tips and tricks supplied here.
Add _site
to .gitignore
. The generated site should not be uploaded to Github since its gets generated by github.
input[type="text"] { | |
-webkit-appearance:none; /* Remove default shadow */ | |
border:1px solid black; /* Possibly apply a custom border */ | |
} |
Bubble = class() | |
-- Magic Puzzle Bubble by @juaxix - LGPL | |
-- 11/11/11 | |
-- http://xixgames.com | |
-- video: http://www.youtube.com/watch?v=rD0fQVSj_7w | |
-- Bubble states | |
BUBBLE_EMPTY = 0 | |
BUBBLE_CREATED = 1 | |
BUBBLE_FLYING = 2 | |
BUBBLE_ATTACHED = 3 |
The FAQ maintained by Github covers most stumbling blocks, some other tips and tricks supplied here.
Add _site
to .gitignore
. The generated site should not be uploaded to Github since its gets generated by github.
#!/bin/sh | |
### | |
# SOME COMMANDS WILL NOT WORK ON macOS (Sierra or newer) | |
# For Sierra or newer, see https://github.com/mathiasbynens/dotfiles/blob/master/.macos | |
### | |
# Alot of these configs have been taken from the various places | |
# on the web, most from here | |
# https://github.com/mathiasbynens/dotfiles/blob/5b3c8418ed42d93af2e647dc9d122f25cc034871/.osx |
fizz = [nil, nil, "Fizz"].cycle | |
buzz = [nil, nil, nil, nil, "Buzz"].cycle | |
numbers = 1..100 | |
numbers.zip(fizz, buzz) do |n, f, b| | |
fizzbuzz = [f, b].join | |
puts(fizzbuzz.empty? ? n : fizzbuzz) | |
end |
#!/bin/bash | |
# | |
# This script configures WordPress file permissions based on recommendations | |
# from http://codex.wordpress.org/Hardening_WordPress#File_permissions | |
# | |
# Author: Michael Conigliaro <mike [at] conigliaro [dot] org> | |
# | |
WP_OWNER=www-data # <-- wordpress owner | |
WP_GROUP=www-data # <-- wordpress group | |
WP_ROOT=$1 # <-- wordpress root directory |
When the directory structure of your Node.js application (not library!) has some depth, you end up with a lot of annoying relative paths in your require calls like:
const Article = require('../../../../app/models/article');
Those suck for maintenance and they're ugly.
Note: I had issues with setting up my Facebook app so authentication would work. I'd receive the error at the bottom, and it took me a while to figure out what was wrong
Here are the steps I took:
http://developers.facebook.com/
, create, and setup your apphttp://localhost:3000/
as "Site URL" (and "Mobile URL" if necessary)localhost
to "App Domains" above