Gets all events that occur within a given time range, and that include the specified guest email in the guest list.
###Parameters:###
| """Information Retrieval metrics | |
| Useful Resources: | |
| http://www.cs.utexas.edu/~mooney/ir-course/slides/Evaluation.ppt | |
| http://www.nii.ac.jp/TechReports/05-014E.pdf | |
| http://www.stanford.edu/class/cs276/handouts/EvaluationNew-handout-6-per.pdf | |
| http://hal.archives-ouvertes.fr/docs/00/72/67/60/PDF/07-busa-fekete.pdf | |
| Learning to Rank for Information Retrieval (Tie-Yan Liu) | |
| """ | |
| import numpy as np |
| function convertSheet2Json(sheet) { | |
| // first line(title) | |
| var firstRange = sheet.getRange(1, 1, 1, sheet.getLastColumn()); | |
| var firstRowValues = firstRange.getValues(); | |
| var titleColumns = firstRowValues[0]; | |
| // after the second line(data) | |
| var lastRow = sheet.getLastRow(); | |
| var rowValues = []; | |
| for(var rowIndex=2; rowIndex<=lastRow; rowIndex++) { |
| function pullJSON() { | |
| var ss = SpreadsheetApp.getActiveSpreadsheet(); | |
| var sheets = ss.getSheets(); | |
| var sheet = ss.getActiveSheet(); | |
| var url="http://example.com/feeds?type=json"; // Paste your JSON URL here | |
| var response = UrlFetchApp.fetch(url); // get feed | |
| var dataAll = JSON.parse(response.getContentText()); // |
| #!/usr/bin/env python | |
| # To look at: https://github.com/kcrawford/mac-network/blob/master/lib/mac-network/wifi.rb | |
| # To look at: https://stackoverflow.com/questions/28096630/mac-os-x-10-10-reorder-preferred-networks | |
| ''' | |
| Playing around with CoreWLAN to return information about the wi-fi connection | |
| Documentation: | |
| https://developer.apple.com/library/mac/documentation/CoreWLAN/Reference/CWInterface_reference/translated_content/CWInterface.html |
| # Tested on 10.11 | |
| # Note: | |
| # The marketing information embedded in the ServerInformation.framework is not the same as what | |
| # About This Mac displays - there are differences. | |
| # | |
| # For example: | |
| # ServerInformation: 15" MacBook Pro with Retina display (Mid 2015) | |
| # About This Mac: MacBook Pro (Retina, 15-inch, Mid 2015) | |
| # |
| #!/bin/sh | |
| # Based on investigations and work by Pepijn Bruienne | |
| # Expects a single /Applications/Install macOS Sierra*.app on disk | |
| # Adapted from https://gist.github.com/gregneagle/7c802aef636ac4295536f2e360921bb1 | |
| IDENTIFIER="com.foo.FirmwareUpdateStandalone" | |
| VERSION=1.0 | |
| # find the Install macOS Sierra.app and mount the embedded InstallESD disk image | |
| echo "Mounting Sierra ESD disk image..." |
This is a bash script that will automatically turn your wifi off if you connect your computer to an ethernet connection and turn wifi back on when you unplug your ethernet cable/adapter. If you decide to turn wifi on for whatever reason, it will remember that choice. This was improvised from this mac hint to work with Yosemite, and without hard-coding the adapter names. It's supposed to support growl, but I didn't check that part. I did, however, add OSX notification center support. Feel free to fork and fix any issues you encounter.
Most the credit for these changes go to Dave Holland.
| property destination_for_dmgs : "/Users/mike/Desktop" | |
| on open the_items | |
| repeat with an_item in the_items | |
| set the_info to info for an_item | |
| if kind of the_info is "Folder" then | |
| set dmg_path to quoted form of (destination_for_dmgs & "/" & (name of the_info) & ".dmg") | |
| set src_path to quoted form of POSIX path of an_item | |
| set vol_name to quoted form of (name of the_info) | |
| set command_str to "hdiutil create " & dmg_path & " -volname " & vol_name & " -srcfolder " & src_path |