Is this really necessary? It seems like a bit of work...
In Vim, make all comments stick:
:arg **/*.js.coffee
:argdo %s/^\(\s*\)#/\1#!/ge
Compile from CoffeeScript to JavaScript (npm install -g coffee-script
):
#301 Redirects for .htaccess | |
#Redirect a single page: | |
Redirect 301 /pagename.php http://www.domain.com/pagename.html | |
#Redirect an entire site: | |
Redirect 301 / http://www.domain.com/ | |
#Redirect an entire site to a sub folder | |
Redirect 301 / http://www.domain.com/subfolder/ |
Is this really necessary? It seems like a bit of work...
In Vim, make all comments stick:
:arg **/*.js.coffee
:argdo %s/^\(\s*\)#/\1#!/ge
Compile from CoffeeScript to JavaScript (npm install -g coffee-script
):
var fs = require('fs'), | |
os = require('os'), | |
lineReader = require('line-reader'); | |
function help(){ | |
console.log('Usage: node coffee-asset-pipeline-comments.js file1.coffee'); | |
} | |
function compilefile(pathname, outdir){ | |
var src = ''; |
Short url: caseywatts.com/mediawikionheroku
Unrelated update: my book is out! Debugging Your Brain is an applied psychology / self-help book
How to get set up with Mediawiki running on Heroku.
Fork https://github.com/mediawiki/mediawiki (from the web interface)
(master
worked fine for me, but you might want the last stable tag?)
ESTADOS_BRASILEIROS = [ | |
["Acre", "AC"], | |
["Alagoas", "AL"], | |
["Amapá", "AP"], | |
["Amazonas", "AM"], | |
["Bahia", "BA"], | |
["Ceará", "CE"], | |
["Distrito Federal", "DF"], | |
["Espírito Santo", "ES"], | |
["Goiás", "GO"], |
ln -s /usr/local/opt/readline/lib/libreadline.7.0.dylib /usr/local/opt/readline/lib/libreadline.6.dylib |
import React, { useState, useEffect } from 'react' | |
import PropTypes from 'prop-types' | |
import { checkIsAuthenticated, authSignUp, authLogin, authLogout } from '../../services/auth' | |
export const AuthContext = React.createContext({}) | |
export default function Auth({ children }) { | |
const [isAuthenticated, setIsAuthenticated] = useState(false) | |
const [isLoading, setIsLoading] = useState(true) |