Tiny wrapper component for React-Datepicker to stylistically fit with Chakra-UI 1.x.
<DatePicker selectedDate={myDate} onChange={(d) => console.log(d)} />
Tiny wrapper component for React-Datepicker to stylistically fit with Chakra-UI 1.x.
<DatePicker selectedDate={myDate} onChange={(d) => console.log(d)} />
| const groupBy = (data, keys) => { // `data` is an array of objects, `keys` is the array of keys (or property accessor) to group by | |
| // reduce runs this anonymous function on each element of `data` (the `item` parameter, | |
| // returning the `storage` parameter at the end | |
| return data.reduce((storage, item) => { | |
| // returns an object containing keys and values of each item | |
| const groupValues = keys.reduce((values, key) => { | |
| values[key] = item[key]; | |
| return values; | |
| }, {}); | |
| cd /home/<user>/ | |
| sudo apt-get install unzip | |
| wget https://dl.google.com/android/repository/sdk-tools-linux-4333796.zip | |
| unzip sdk-tools-linux-4333796.zip -d Android | |
| rm sdk-tools-linux-4333796.zip | |
| sudo apt-get install -y lib32z1 openjdk-8-jdk | |
| export JAVA_HOME=/usr/lib/jvm/java-8-openjdk-amd64 | |
| export PATH=$PATH:$JAVA_HOME/bin | |
| printf "\n\nexport JAVA_HOME=/usr/lib/jvm/java-8-openjdk-amd64\nexport PATH=\$PATH:\$JAVA_HOME/bin" >> ~/.bashrc | |
| cd Android/tools/bin |
| function sanitize(object) { | |
| if (_.isString(object)) return _sanitizeString(object); | |
| if (_.isArray(object)) return _sanitizeArray(object); | |
| if (_.isPlainObject(object)) return _sanitizeObject(object); | |
| return object; | |
| } | |
| function _sanitizeString(string) { | |
| return _.isEmpty(string) ? null : string; | |
| } |
| #! /bin/sh | |
| # update glibc to 2.17 for CentOS 6 | |
| wget http://copr-be.cloud.fedoraproject.org/results/mosquito/myrepo-el6/epel-6-x86_64/glibc-2.17-55.fc20/glibc-2.17-55.el6.x86_64.rpm | |
| wget http://copr-be.cloud.fedoraproject.org/results/mosquito/myrepo-el6/epel-6-x86_64/glibc-2.17-55.fc20/glibc-common-2.17-55.el6.x86_64.rpm | |
| wget http://copr-be.cloud.fedoraproject.org/results/mosquito/myrepo-el6/epel-6-x86_64/glibc-2.17-55.fc20/glibc-devel-2.17-55.el6.x86_64.rpm | |
| wget http://copr-be.cloud.fedoraproject.org/results/mosquito/myrepo-el6/epel-6-x86_64/glibc-2.17-55.fc20/glibc-headers-2.17-55.el6.x86_64.rpm | |
| sudo rpm -Uvh glibc-2.17-55.el6.x86_64.rpm \ |
Sublime text 3 (Build 3126) license key,these all tested available on 2016/09/23.
##Feel free to enjoy them.
—– BEGIN LICENSE —–
Michael Barnes
Single User License
EA7E-821385
8A353C41 872A0D5C DF9B2950 AFF6F667
| <?php | |
| /** | |
| * | |
| * Filter post slug | |
| * This needs saving as post meta to use that value rather than regenerate a new one | |
| * | |
| **/ | |
| add_filter( 'wp_unique_post_slug', function( $slug, $post_ID, $post_status, $post_type, $post_parent, $original_slug ) { |
| <!-- no diretorio de instalacao do Tomcat --> | |
| <Resource name="jdbc/dataSource" auth="Container" type="javax.sql.DataSource" | |
| maxActive="100" maxIdle="30" maxWait="10000" | |
| username="root" password="" | |
| driverClassName="com.mysql.jdbc.Driver" | |
| url="jdbc:mysql://localhost/fj21"/> |