Each of these commands will run an ad hoc http static server in your current (or specified) directory, available at http://localhost:8000. Use this power wisely.
$ python -m SimpleHTTPServer 8000
Each of these commands will run an ad hoc http static server in your current (or specified) directory, available at http://localhost:8000. Use this power wisely.
$ python -m SimpleHTTPServer 8000
:: Download this and execute as admin | |
:: Install choco .exe and add choco to PATH | |
@powershell -NoProfile -ExecutionPolicy Bypass -Command "iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1'))" && SET "PATH=%PATH%;%ALLUSERSPROFILE%\chocolatey\bin" | |
choco feature enable -n allowGlobalConfirmation | |
:: Just install node stuff manually. Trust me. | |
:: choco install nodejs-lts --install-directory='C:\nodejs' -fy | |
:: npm install -g gulp [email protected] [email protected] bower |
#pragma once | |
#include <QObject> | |
//See Gist Comment for description, usage, warnings and license information | |
#define AUTO_PROPERTY(TYPE, NAME) \ | |
Q_PROPERTY(TYPE NAME READ NAME WRITE NAME NOTIFY NAME##Changed ) \ | |
public: \ | |
TYPE NAME() const { return a_##NAME ; } \ | |
void NAME(const TYPE& value) { \ | |
if (a_##NAME == value) return; \ | |
a_##NAME = value; \ |
# update gitignore | |
git rm -r --cached . | |
git add . | |
git commit -m ".gitignore is now working" | |
# fetch over write from remote | |
git fetch origin master | |
git reset --hard FETCH_HEAD | |
git clean -df |