Open ~/.bash_profile in your favorite editor and add the following content to the bottom.
# Git branch in prompt.
parse_git_branch() {| export default { | |
| ACTIONS_INC: state => ({ | |
| ...state, | |
| count: state.count + 1 | |
| }), | |
| ACTIONS_DEC: state => ({ ...state, count: state.count - 1 }) | |
| }; |
| import React from "react"; | |
| import { createStore } from "redux"; | |
| import { connect, Provider } from "react-redux"; | |
| const ACTIONS_INC = "ACTIONS_INC"; | |
| const ACTIONS_DEC = "ACTIONS_DEC"; | |
| function counter(state = { count: 0 }, { type }) { | |
| const actions = { | |
| [ACTIONS_INC]: () => ({ count: state.count + 1 }), |
| function activateDarkMode() { | |
| const rootElement = document.querySelector(':root') | |
| const darkTheme = { | |
| '--background-color': '#1e1e1e', | |
| '--primary-color': '#157efb', | |
| '--font-color': '#dedede', | |
| '--subtle-primary-color': '#151513', | |
| '--block-background-color': '#323232', | |
| '--menu-item-color': '#dedede', | |
| '--menu-item-hover-color': '#157efb', |
| <httpCompression directory="%SystemDrive%\inetpub\temp\IIS Temporary Compressed Files"> | |
| <scheme name="gzip" dll="%Windir%\system32\inetsrv\gzip.dll" /> | |
| <staticTypes> | |
| <add mimeType="text/*" enabled="true" /> | |
| <add mimeType="message/*" enabled="true" /> | |
| <add mimeType="application/x-javascript" enabled="true" /> | |
| <add mimeType="application/atom+xml" enabled="true" /> | |
| <add mimeType="application/xaml+xml" enabled="true" /> | |
| <add mimeType="*/*" enabled="false" /> |
| var touchstartX = 0; | |
| var touchstartY = 0; | |
| var touchendX = 0; | |
| var touchendY = 0; | |
| var gesuredZone = document.getElementById('gesuredZone'); | |
| gesuredZone.addEventListener('touchstart', function(event) { | |
| touchstartX = event.screenX; | |
| touchstartY = event.screenY; |
| /** | |
| * Basic proof of concept. | |
| * - Hot reloadable | |
| * - Stateless stores | |
| * - Stores and action creators interoperable with Redux. | |
| */ | |
| import React, { Component } from 'react'; | |
| export default function dispatch(store, atom, action) { |
| <?xml version="1.0" encoding="UTF-8"?> | |
| <configuration> | |
| <system.webServer> | |
| <httpCompression directory="%SystemDrive%\inetpub\temp\IIS Temporary Compressed Files"> | |
| <scheme name="gzip" dll="%Windir%\system32\inetsrv\gzip.dll"/> | |
| <dynamicTypes> | |
| <add mimeType="text/*" enabled="true"/> | |
| <add mimeType="message/*" enabled="true"/> | |
| <add mimeType="application/javascript" enabled="true"/> | |
| <add mimeType="*/*" enabled="false"/> |
| var express = require("express"); | |
| var app = express(); | |
| app.get("/restricted", function(req, res, next){ | |
| // Grab the "Authorization" header. | |
| var auth = req.get("authorization"); | |
| // On the first request, the "Authorization" header won't exist, so we'll set a Response | |
| // header that prompts the browser to ask for a username and password. |