In iTerm2, in the menu bar go to Scripts > Manage > New Python Script
Select Basic. Select Long-Running Daemon
Give the script a decent name (I chose auto_dark_mode.py
)
Save and open the script in your editor of choice.
import { Logger } from 'aws-amplify'; | |
const logger = new Logger('fetchItemsNextToken', 'VERBOSE'); | |
/** | |
* @desc Recursively fetch all items in a list query using nextToken | |
* @param {Object} client An AppSyncClient instantiation | |
* @returns {Object} { items, key } Items are results, | |
* key is the name of the query called. | |
*/ |
{ | |
"defaultProfile": "{09dc5eef-6840-4050-ae69-21e55e6a2e62}", | |
"initialRows": 30, | |
"initialCols": 120, | |
"alwaysShowTabs": true, | |
"showTerminalTitleInTitlebar": true, | |
"experimental_showTabsInTitlebar": true, | |
"profiles": [ | |
{ | |
"guid": "{09dc5eef-6840-4050-ae69-21e55e6a2e62}", |
The latest beta (3.5) includes separate color settings for light & dark mode. Toggling dark mode automatically switches colors.
Vist iTerm2 homepage or use brew install iterm2-beta
to download the beta. Thanks @stefanwascoding.
switch_automatic.py
to ~/Library/ApplicationSupport/iTerm2/Scripts/AutoLaunch
with:import * as React from 'react'; | |
import { hot } from 'react-hot-loader'; | |
import { Provider } from 'react-redux'; | |
import DevTools from '../Devtools'; | |
import configureStore from '../../store/configureStore'; | |
import App from '../App'; | |
import ApplicationState from '../../store/store.types'; | |
import { fetchAuth } from '../../store/common/Auth/Auth'; |
class Button extends React.Component { | |
handleClick = () => { | |
this.props.onClickFunction(this.props.incrementValue); | |
}; | |
render() { | |
return ( | |
<button onClick={this.handleClick}> | |
+{this.props.incrementValue} | |
</button> |
Status: Draft 1 In Progress. This document is undergoing its first revision. Initial implementation has begun alongside editing Draft 1. Your feedback is hoped and dreamed of.
Mathematical Structured Object Notation is a JSON-based representation for most of the common subset of what LaTeX and Presentation MathML can
// JS array equivalents to C# LINQ methods - by Dan B. | |
// First: This version using older JavaScript notation for universal browser support (scroll down for ES6 version): | |
// Here's a simple array of "person" objects | |
var people = [ | |
{ name: "John", age: 20 }, | |
{ name: "Mary", age: 35 }, | |
{ name: "Arthur", age: 78 }, | |
{ name: "Mike", age: 27 }, |
using OfficeOpenXml; | |
using System.Collections.Generic; | |
using System.IO; | |
using System.Text; | |
namespace WebUI.Infrastructure | |
{ | |
public static class StringUtils | |
{ | |
private static string DuplicateTicksForSql(this string s) |