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
[].forEach.call(document.querySelectorAll('img'),function(i) | |
{ | |
i.setAttribute('data-natural-width',i.naturalWidth); | |
i.setAttribute('data-natural-height',i.naturalHeight); | |
}) |
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
convert -profile "/System/Library/ColorSync/Profiles/sRGB Profile.icc" -colorspace RGB source.jpg destination.jpg |
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
import org.apache.spark.SparkConf; | |
import org.apache.spark.api.java.JavaSparkContext; | |
import org.apache.spark.sql.cassandra.CassandraSQLContext; | |
import org.slf4j.Logger; | |
import org.slf4j.LoggerFactory; | |
/* This is simply a wrapper around Typedafe's config */ | |
import utilities.Configuration; | |
public class SparkService |
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
Runtime.getRuntime().addShutdownHook(new Thread(new Runnable() | |
{ | |
@Override | |
public void run() | |
{ | |
System.out.println(); | |
System.out.println("Exiting..."); | |
} | |
})); |
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
Homebrew build logs for homebrew/science/opencv3 on Mac OS X 10.11.4 | |
Build date: 2016-06-23 17:26:08 |
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
#!/bin/bash | |
aws s3 cp s3://$BUCKET_NAME/$ARCHIVE_KEY . | |
echo "Extracting project" | |
DIRECTORY_NAME=`tar -tf $ARCHIVE_NAME | sed -e 's@/.*@@' | uniq` | |
tar -zxvf ./$ARCHIVE_NAME |
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
<assembly xmlns="http://maven.apache.org/ASSEMBLY/2.0.0" | |
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | |
xsi:schemaLocation="http://maven.apache.org/ASSEMBLY/2.0.0 http://maven.apache.org/xsd/assembly-2.0.0.xsd"> | |
<id>bin</id> | |
<formats> | |
<format>tar.gz</format> | |
</formats> | |
<dependencySets> | |
<dependencySet> | |
<useProjectArtifact>false</useProjectArtifact> |
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
import com.google.inject.Inject; | |
import com.google.inject.name.Named; | |
import org.apache.http.*; | |
import org.apache.http.client.utils.URIBuilder; | |
import org.apache.http.entity.BasicHttpEntity; | |
import org.apache.http.message.BasicHeader; | |
import org.apache.http.protocol.HttpContext; | |
import org.elasticsearch.action.admin.cluster.health.ClusterHealthRequest; | |
import org.elasticsearch.action.admin.cluster.health.ClusterHealthResponse; | |
import org.elasticsearch.client.RequestOptions; |
This file has been truncated, but you can view the full file.
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
SteamVR System Report created Fri Jun 18 08:36:23 2021 | |
<Report> | |
SteamVR Version: 1.18.2 (1623790092) | |
SteamVR Date: 2021-06-15 | |
Steam: Public | |
Steam Branch: beta | |
Steam AppID: 250820 | |
Tracking: lighthouse | |
OS: Linux version 5.4.0-53-generic (buildd@lcy01-amd64-007) (gcc version 9.3.0 (Ubuntu 9.3.0-17ubuntu1~20.04)) #59-Ubuntu SMP Wed Oct 21 09:38:44 UTC 2020 |
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
#!/bin/bash | |
# arg 1 is filename arg 2 is output directory | |
FILENAME=$1 | |
VIDEO_NAME=`echo "${FILENAME%.*}"` | |
echo "Generating renditions for $VIDEO_NAME" |