Example useage of Select2 to add and edit multiple activities to user. This gives freedom of dynamic communication and action plans that can be quickly edited and customized on a user by user basis.
A Pen by John Bocook on CodePen.
| RewriteEngine On | |
| RewriteCond %{HTTP_HOST} ^example.com$ [NC] | |
| RewriteRule ^(.*)$ http://www.example.com/$1 [L,R=301] |
| /* Padding and Margins */ | |
| /* 0 */ | |
| .padding-top-0 { | |
| padding-top: 0px; | |
| } | |
| .padding-bottom-0 { | |
| padding-bottom: 0px; | |
| } | |
| .padding-left-0 { |
| Homebrew | |
| https://brew.sh/ | |
| Oh-My-Zsh | |
| https://github.com/robbyrussell/oh-my-zsh/ | |
| Lepton | |
| http://hackjutsu.com/Lepton/ | |
| iTerm2 version 3 |
| var isLocal = location.host.includes('localhost'); |
| function millisToMinutesAndSeconds(millis) { | |
| var minutes = Math.floor(millis / 60000); | |
| var seconds = ((millis % 60000) / 1000).toFixed(0); | |
| return minutes + ":" + (seconds < 10 ? '0' : '') + seconds; | |
| } |
Example useage of Select2 to add and edit multiple activities to user. This gives freedom of dynamic communication and action plans that can be quickly edited and customized on a user by user basis.
A Pen by John Bocook on CodePen.
| var myDate = '05/05/2019'; | |
| var today = new Date(); | |
| function process(date) { | |
| var parts = date.split("/"); | |
| return new Date(parts[2], parts[1] - 1, parts[0]); | |
| } | |
| if (process(myDate) <= today) { |
| if (dateDiff("yyyy", date_maint, now()) <= 0){ | |
| writeOutput('new' & date_maint &'</span>'); | |
| } else { | |
| writeOutput('old' & date_maint &'</span>'); | |
| } |
| #!/bin/sh | |
| # Converts a mysqldump file into a Sqlite 3 compatible file. It also extracts the MySQL `KEY xxxxx` from the | |
| # CREATE block and create them in separate commands _after_ all the INSERTs. | |
| # Awk is choosen because it's fast and portable. You can use gawk, original awk or even the lightning fast mawk. | |
| # The mysqldump file is traversed only once. | |
| # Usage: $ ./mysql2sqlite mysqldump-opts db-name | sqlite3 database.sqlite | |
| # Example: $ ./mysql2sqlite --no-data -u root -pMySecretPassWord myDbase | sqlite3 database.sqlite |