This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* BITWISE FLAGS for Custom PHP Objects | |
* | |
* @link http://php.net/manual/en/language.operators.bitwise.php#108679 | |
* | |
* Sometimes I need a custom PHP Object that holds several boolean TRUE or FALSE values. | |
* I could easily include a variable for each of them, but as always, code has a way to | |
* get unweildy pretty fast. A more intelligent approach always seems to be the answer, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ # initiate export, will return 202: | |
$ curl -u evzijst:passwd -X POST -v https://api.bitbucket.org/1.0/repositories/evzijst/interruptingcow/issues/export | |
[...] | |
< HTTP/1.1 202 ACCEPTED | |
[...] | |
$ # poll for status updates: | |
$ curl -u evzijst:passwd -X GET https://api.bitbucket.org/1.0/repositories/evzijst/interruptingcow/issues/export | |
{"status": "ACCEPTED", "count": "1", "total": "4", "phase": "Issues", "pct": "25"} | |
$ # until it's ready: | |
$ curl -u evzijst:passwd -X GET https://api.bitbucket.org/1.0/repositories/evzijst/interruptingcow/issues/export |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package org.apache.spark.examples | |
import org.apache.spark.SparkContext | |
import org.apache.spark.SparkContext._ | |
import org.apache.spark.rdd.RDD | |
import java.util.Random | |
import scala.collection.mutable | |
import org.apache.spark.serializer.KryoRegistrator | |
import com.esotericsoftware.kryo.Kryo |
Only files under 25 MB can be previewed with the Google Drive viewer.
Google Drive viewer helps you preview over 16 different file types, listed below:
- Image files (.JPEG, .PNG, .GIF, .TIFF, .BMP)
- Video files (WebM, .MPEG4, .3GPP, .MOV, .AVI, .MPEGPS, .WMV, .FLV)
- Text files (.TXT)
- Markup/Code (.CSS, .HTML, .PHP, .C, .CPP, .H, .HPP, .JS)
- Microsoft Word (.DOC and .DOCX)