Version: 1.9.8
Platform: x86_64
First, install or update to the latest system software.
sudo apt-get update
sudo apt-get install build-essential chrpath libssl-dev libxft-dev
| /* | |
| * dev/tasks/RestoreFileVersionTask?FileID=1&Version=13 | |
| * https://docs.silverstripe.org/en/4/developer_guides/files/file_management/#configuring-file-archiving | |
| * In order to do keep all files, should set up keep_archived_assets in config/assets.yml | |
| * SilverStripe\Assets\File: | |
| * keep_archived_assets: true | |
| */ | |
| <?php |
| /* | |
| Passing Data Between React Components | |
| https://codepen.io/smhigley/pen/GRgjRVN | |
| https://medium.com/@ruthmpardee/passing-data-between-react-components-103ad82ebd17 | |
| */ | |
| import React, { useState, useEffect, useRef } from 'react'; | |
| import Component from '../core/component.js'; | |
| const SearchSortby = () => { |
| /* | |
| Passing Data Between React Components | |
| https://codepen.io/smhigley/pen/GRgjRVN | |
| https://medium.com/@ruthmpardee/passing-data-between-react-components-103ad82ebd17 | |
| */ | |
| import React, { useState, useEffect, useRef } from 'react'; | |
| import Component from '../core/component.js'; | |
| const SearchSortby = () => { |
| #!/bin/bash | |
| # Run as: ./deploy.sh /dir/name | |
| # TODO: | |
| # - add a starting directory | |
| # - add a backup script to run before updating, you know just in case... | |
| # - add error checking | |
| # - add a safety token/password to prevent unauthorized calls | |
| # - Employ git hook |
| /* | |
| Issue 1 | |
| Gatsby react TypeError: leaflet_src.Icon is not a constructor | |
| from | |
| const markerIcon = new Icon({ | |
| iconUrl: markerIconPng | |
| }); | |
| Issue 2 |
| license: mit |
| # install phantomjs | |
| cd /usr/local/share | |
| sudo wget https://phantomjs.googlecode.com/files/phantomjs-1.9.2-linux-x86_64.tar.bz2 | |
| sudo tar xjf phantomjs-1.9.2-linux-x86_64.tar.bz2 | |
| sudo ln -s /usr/local/share/phantomjs-1.9.2-linux-x86_64/bin/phantomjs /usr/local/share/phantomjs; sudo ln -s /usr/local/share/phantomjs-1.9.2-linux-x86_64/bin/phantomjs /usr/local/bin/phantomjs; sudo ln -s /usr/local/share/phantomjs-1.9.2-linux-x86_64/bin/phantomjs /usr/bin/phantomjs | |
| sudo apt-get install fontconfig | |
| # install casperjs | |
| cd /var/www/ | |
| git clone git://github.com/n1k0/casperjs.git |
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <title>Leaflet</title> | |
| <link rel="stylesheet" href="http://cdn.leafletjs.com/leaflet-0.3.1/leaflet.css" /> | |
| <script src="http://cdn.leafletjs.com/leaflet-0.3.1/leaflet.js"></script> | |
| <script src="http://maps.google.com/maps/api/js?v=3.2&sensor=false"></script> | |
| <script src="http://matchingnotes.com/javascripts/leaflet-google.js"></script> | |
| </head> | |
| <body> |