Use these rapid keyboard shortcuts to control the GitHub Atom text editor on macOS.
- ⌘ : Command key
- ⌃ : Control key
- ⌫ : Delete key
- ← : Left arrow key
- → : Right arrow key
- ↑ : Up arrow key
| import React, {Component} from "react"; | |
| import {Animated, Dimensions, Platform, Text, TouchableOpacity, View} from "react-native"; | |
| import {Body, Header, List, ListItem as Item, ScrollableTab, Tab, TabHeading, Tabs, Title} from "native-base"; | |
| import LinearGradient from "react-native-linear-gradient"; | |
| const {width: SCREEN_WIDTH} = Dimensions.get("window"); | |
| const IMAGE_HEIGHT = 250; | |
| const HEADER_HEIGHT = Platform.OS === "ios" ? 64 : 50; | |
| const SCROLL_HEIGHT = IMAGE_HEIGHT - HEADER_HEIGHT; | |
| const THEME_COLOR = "rgba(85,186,255, 1)"; |
| import {WebView, View} from "react-native"; | |
| import React, { Component } from 'react' | |
| const BODY_TAG_PATTERN = /\<\/ *body\>/; | |
| // Do not add any comments to this! It will break line breaks will removed for | |
| // some weird reason. | |
| var script = ` | |
| ;(function() { | |
| var wrapper = document.createElement("div"); |
| buttonHTML = """<button type="button" class="attach" data-action="x-attach">Attach Files</button>""" | |
| fileInputHTML = """<input type="file" multiple>""" | |
| $(Trix.config.toolbar.content).find(".button_group.block_tools").append(buttonHTML) | |
| $(document).on "trix-action-invoke", ($event) -> | |
| if $event.originalEvent.actionName is "x-attach" | |
| editorElement = $event.target | |
| editorElement.focus() |
Use these rapid keyboard shortcuts to control the GitHub Atom text editor on macOS.
| Architecture: Rails 3.2, Solr 1.4 with sunspot_solr gem, Apache HTTP server as reverse proxy to | |
| Rails app, Jquery UI | |
| Note: I don't care about the distinction between autocomplete and autosuggest. I am implementing what some | |
| people call autosuggest, and I'm calling it autocomplete. | |
| Given the above existing architecture, I want to add an autocomplete field into my app for a single | |
| attribute on a single model. It needs to be fast and secure (duh). The search target field could have | |
| white space and the search input should allow it, e.g., if I search with "iker's gui" it should return |
| # Author: Pieter Noordhuis | |
| # Description: Simple demo to showcase Redis PubSub with EventMachine | |
| # | |
| # Requirements: | |
| # - rubygems: eventmachine, thin, cramp, sinatra, yajl-ruby | |
| # - a browser with WebSocket support | |
| # | |
| # Usage: | |
| # ruby redis_pubsub_demo.rb | |
| # |