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
@GET | |
@Path("/dates/{ticker}") | |
@Produces("application/json") | |
public Response getStatements(@PathParam("ticker") String ticker) { | |
try { | |
CompanyStatements companyStatements = fundamentalsDao.getStatementsForCompany(ticker); | |
GsonBuilder gsonBuilder = new GsonBuilder(); | |
gsonBuilder.registerTypeAdapter(Date.class, new DronzeDateSerializer()); | |
Gson gson = gsonBuilder.create(); |
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
<!DOCTYPE html> | |
<html ng-app="dronzeApp"> | |
<head> | |
<title>Hello World, AngularJS - ViralPatel.net</title> | |
<script type="text/javascript" | |
src="//ajax.googleapis.com/ajax/libs/angularjs/1.0.7/angular.min.js"></script> | |
<script type="text/javascript"> | |
var dronzeApp = angular.module('dronzeApp', []); | |
dronzeApp.config(function($httpProvider) { |
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
vagrant plugin install vagrant-vbguest |
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
python -m SimpleHTTPServer |
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
aws s3 sync . s3://claytantor.com --exclude="*.git/*" |
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
chrome://net-internals/#events |
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
#!/usr/sbin/dtrace -s | |
syscall::bind:entry | |
/execname == "java"/ | |
{ | |
self->t = timestamp; | |
this->socks = (struct sockaddr*)copyin(arg1, arg2); | |
this->hport = (uint_t)this->socks->sa_data[0]; | |
this->lport = (uint_t)this->socks->sa_data[1]; | |
this->hport <<= 8; | |
this->port = this->hport + this->lport; |
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
<div class="row, controller" ng-controller="D3LineController"> | |
<h2>{{title}}</h2> | |
<p>{{d3DataLine}}</p> | |
<div class="col-md-6 col-md-offset-3"> | |
<d3-linechart label="name"></d3-linechart> | |
</div> | |
</div> |
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
public class CollectionsUtils { | |
public static void remove(List<?> items, Filter<Object> filter) { | |
Iterator<?> iterator = items.iterator(); | |
while (iterator.hasNext()) { | |
if (filter.shouldRemove(iterator.next())) { | |
iterator.remove(); | |
} | |
} | |
} | |
} |
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
final File f = new File( | |
MyClass.class | |
.getProtectionDomain() | |
.getCodeSource() | |
.getLocation().getPath()); |