Help with SQL commands to interact with a MySQL database
- Mac /usr/local/mysql/bin
- Windows /Program Files/MySQL/MySQL version/bin
- Xampp /xampp/mysql/bin
| xmlFetch: function() { | |
| timerId = setInterval(function() { | |
| $.get(url, function(xml) { | |
| $.publish('xmlFetch', [xml]); | |
| }); | |
| }, interval); | |
| } |
| // Given the following namespaced objects | |
| // a widget | |
| Namespace('km.widget.edVolGraph', { | |
| handle: 'undefined', | |
| load: function() { | |
| handle = $.subscribe('xmlFetch', function() { | |
| // do stuff | |
| }); |
| // get xml file & publish | |
| km.core = { | |
| url: 'someDir/someFile', | |
| fetch: $.get(url, function(xml) { | |
| $.publish('xmlFetch', [xml]); | |
| }) | |
| }; | |
| // subscribe to xml file and do stuff | |
| km.widget.edVolGraph = { |
| // | |
| // OnboardingController.swift | |
| // Onboarding | |
| import UIKit | |
| class OnboardingController: UICollectionViewController, UICollectionViewDelegateFlowLayout { | |
| override func viewWillTransition(to size: CGSize, with coordinator: UIViewControllerTransitionCoordinator) { | |
| super.viewWillTransition(to: size, with: coordinator) |
| class NewViewController: UIViewController { | |
| @IBOutlet var webView: WKWebView! | |
| var fileToLoad: URL? | |
| override func loadView() { | |
| webView = WKWebView() | |
| self.view = webView | |
| } |
| func collectionView(_ collectionView: UICollectionView, didSelectItemAt indexPath: IndexPath) { | |
| if let cell = collectionView.cellForItem(at: indexPath) as? ClinicianViewCell { | |
| let clinician = clinicians[indexPath.item] | |
| UIView.animate(withDuration: 0.1, delay: 0, options: [], animations: { [weak self] in | |
| cell.transform = CGAffineTransform(scaleX: 0.95, y: 0.95) | |
| cell.clinicianState.transform = CGAffineTransform(scaleX: 1, y: -1) | |
| cell.photoImageView.transform = CGAffineTransform(translationX: -3, y: 3) |
| import UIKit | |
| import WebKit | |
| class DetailViewController: UIViewController, WKNavigationDelegate { | |
| var articleURLString: String! | |
| let webView = WKWebView() | |
| override func loadView() { | |
| self.view = webView |
| class LoginViewController: UIViewController { | |
| // lots of code removed. | |
| @objc func buttonAction() { | |
| let windowScene = view.window?.windowScene | |
| let sceneDelegate = windowScene?.delegate as! SceneDelegate | |
| sceneDelegate.loadTabBarController(). |
This will get you setup with Laravel & Valet on your Mac. Quentin Watt has a good video tutorial on getting setup here as well
Go to https://brew.sh/ and copy the command and run in your terminal
It will be something like this...
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"