Skip to content

Instantly share code, notes, and snippets.

View dboundz's full-sized avatar

D4RRΞN dboundz

  • Independent
View GitHub Profile
$color-text: #31373c;
$border-color: #edeff0;
$border-radius: 4px;
$background-color-2: #f9fafa;
$background-color-3: #edeff0;
$background-color-4: #e3e3e3;
$color-green: #76d691;
$color-green-hover: #5ec27a;
$padding: 15px;
company: {
administrator: {
users: {
read: true,
write: true
},
positions: {
read: all,
write: all
},
5:::{
"name":"companyEvent",
"args":[
{
"_id":"540cdf6d567c",
"type":"messageToCandidateErrored",
"object":{
"body":"adsfasdfasdf",
"subject":"Re: Technical Engineer opportunity",
"attachments":[
[
{
"_id":"3f1933b78502",
"name":"Jeff Jefferson",
"email_address":"jjefferson@jeffworld.com",
"phone_number":"2123459876",
"stage_actions_enabled":true,
"meta_id":"3f1933b78502",
"type":"candidate",
"sourced":true,
<!DOCTYPE html>
<html>
<body>
<h1>What were you expecting?</h1>
<script>
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','//www.google-analytics.com/analytics.js','ga');
baseApp.filter("emptyToEnd", function () {
return function (array, key) {
var keys = key.split(".");
if (!angular.isArray(array)) return;
var present = array.filter(function (item) {
if(keys.length > 1) {
return item[keys[0]][keys[1]];
} else {
return item[keys[0]];
@dboundz
dboundz / gist:d1ce8261c0be7e50e9e6
Created July 23, 2014 19:06
Swift extensions...
extension Int {
func repeat(task: () -> ()) {
for i in 0..self {
task()
}
}
}
500.repeat {
println("hello")
Darrens-MacBook-Pro:news-collection-client dbounds$ node collector.js nba
Requesting page: http://bleacherreport.com/articles/1770310-jim-buss-says-father-jerry-buss-made-final-call-on-mike-dantoni-over-phil-jacks
Requesting page: http://bleacherreport.com/articles/1770256-man-buys-300-storage-unit-and-unearths-dikembe-mutombo-memorabilia-collection
Requesting page: http://bleacherreport.com/articles/1769525-why-the-minnesota-timberwolves-can-be-legitimate-contenders-in-2013-14
Requesting page: http://bleacherreport.com/articles/1769982-why-dwyane-wade-dictates-lebron-james-long-term-miami-heat-future
Requesting page: http://bleacherreport.com/articles/1770100-lebron-james-has-much-to-consider-in-2014-nba-free-agency
Requesting page: http://bleacherreport.com/articles/1769737-way-too-early-predictions-for-kobe-bryants-return-to-la-lakers-in-2013-14
Requesting page: http://bleacherreport.com/articles/1769839-why-kobe-bryants-early-return-from-injury-is-exactly-what-the-nba-needs
Requesting page: http://bleache
@dboundz
dboundz / gist:6334280
Created August 25, 2013 14:58
SliceQuery
SliceQuery<String, String, String> query = HFactory.createSliceQuery(CassandraHelper.keyspace, CassandraHelper.STRING_SERIALIZER, CassandraHelper.STRING_SERIALIZER, CassandraHelper.STRING_SERIALIZER);
query.setColumnFamily("user_graph")
.setRange("", "", true, 50)
.setColumnNames(targetUserId)
.setKey(userId + "_" + type);
[root@ip-10-143-152-214 commitlog]# nodetool -h localhost ring
Address Status State Load Owns Token
147812841064642050890573067299308376119
10.143.152.214 Up Normal 17.63 GB 16.92% 6465521443762750910879932401790818283
10.143.137.229 Up Normal 15.42 GB 14.29% 30770464449828574333878666977671705387
10.189.191.190 Up Normal 14.55 GB 14.29% 55081439847684911199083914992341627091
10.142.148.169 Up Normal 9.89 GB 26.30% 99830924686836618129013673651943109407
10.143.151.252 Up Normal 9.76 GB 12.38% 120896070024475770381967707443124891876
10.143.152.37 Up Joining 6.12 GB 15.82% 147812841064642050890573067299308376119