With this code snippet, you can use Ionicons in your React + TypeScript project with code completion and without any errors from React side.
- Copy the content of the
ion-icons.d.ts
file. - Add scripts inside your
<head>
tags.
<head>
With this code snippet, you can use Ionicons in your React + TypeScript project with code completion and without any errors from React side.
ion-icons.d.ts
file.<head>
tags.<head>
// Sometimes you want to share some variables between your SCSS and JS/JSX code | |
// To do this, you can levarage the :export command in SCSS. | |
$alertInfo: #b8d3e8; | |
$alertWarning: #fdf9c3; | |
$alertSuccess: #cfc; | |
$alertError: #e63f3f; | |
// this exports the variable to be available in JS | |
:export { |
// Show rendered HTML | |
const wrapper = shallow(<App />) | |
console.log(wrapper.debug()) | |
// Disable lifecycle methods of react within tests | |
const wrapper = mount(<App />, { disableLifecycleMethods: true }) | |
// Assert number of occurrences | |
expect(wrapper.find('p').length).toBe(1) |
# https://bosnadev.com/2014/09/12/install-elasticsearch-on-laravel-homestead/ | |
# https://www.elastic.co/guide/en/elasticsearch/reference/current/setup-repositories.html | |
# https://www.elastic.co/blog/elasticsearch-unplugged | |
# Install Java | |
sudo apt-get install openjdk-7-jre-headless -y | |
# Download & install the Public Signing Key | |
wget -qO - https://packages.elastic.co/GPG-KEY-elasticsearch | sudo apt-key add - |
### Install Oracle Java 8, this means you agree to their binary license!! | |
cd ~ | |
sudo add-apt-repository -y ppa:webupd8team/java | |
sudo apt-get update | |
echo debconf shared/accepted-oracle-license-v1-1 select true | sudo debconf-set-selections | |
echo debconf shared/accepted-oracle-license-v1-1 seen true | sudo debconf-set-selections | |
sudo aptitude -y install oracle-java8-installer | |
### Download and Install ElasticSearch |
### Install Oracle Java 8, this means you agree to their binary license!! | |
cd ~ | |
sudo add-apt-repository -y ppa:webupd8team/java | |
sudo apt-get update | |
echo debconf shared/accepted-oracle-license-v1-1 select true | sudo debconf-set-selections | |
echo debconf shared/accepted-oracle-license-v1-1 seen true | sudo debconf-set-selections | |
sudo aptitude -y install oracle-java8-installer | |
### Download and Install ElasticSearch |
cd ~ | |
##If you want to install OpenJDK | |
#sudo apt-get update | |
#sudo apt-get install openjdk-8-jre-headless -y | |
###Or if you want to install Oracle JDK, which seems to have slightly better performance | |
sudo add-apt-repository ppa:webupd8team/java | |
sudo apt-get update | |
sudo apt-get install oracle-java8-installer |
<?php | |
/** | |
* This file serves as a post receive hook for a GitHub repository. It should be placed in the root of the repository. | |
* | |
* To begin, you will need to store a secret key in an environmental variable on the server. | |
* | |
* export SECRET_TOKEN=your_token | |
* | |
* |
#!/bin/bash | |
### USAGE | |
### | |
### ./ElasticSearch.sh 1.7 will install Elasticsearch 1.7 | |
### ./ElasticSearch.sh will fail because no version was specified (exit code 1) | |
### | |
### CLI options Contributed by @janpieper | |
### Check http://www.elasticsearch.org/download/ for latest version of ElasticSearch |
# Install Java | |
sudo apt-get install openjdk-7-jre-headless -y | |
# Download & install the Public Signing Key | |
wget -qO - http://packages.elasticsearch.org/GPG-KEY-elasticsearch | sudo apt-key add - | |
# Add the following to /etc/apt/sources.list | |
deb http://packages.elasticsearch.org/elasticsearch/1.3/debian stable main | |
# Update Aptitude |