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
#define KBUILD_MODNAME "load_balancer" | |
#include <uapi/linux/bpf.h> | |
#include <linux/in.h> | |
#include <linux/if_ether.h> | |
#include <linux/if_packet.h> | |
#include <linux/if_vlan.h> | |
#include <linux/ip.h> | |
#include <linux/ipv6.h> | |
BPF_HASH(counter, uint32_t, long); |
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
<html> | |
<head> | |
<title>Animated Sparkline using SVG Path and d3.js</title> | |
<script src="http://mbostock.github.com/d3/d3.js"></script> | |
<style> | |
/* tell the SVG path to be a thin blue line without any area fill */ | |
path { | |
stroke: steelblue; | |
stroke-width: 1; | |
fill: none; |
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
up_vote: function(data, callback){ | |
data.type="upvote"; | |
console.log(has_voted, 'has_voted, line 87'); | |
mdb.collection('kudos_bank', function(err, coll){ | |
coll.find({'target_hash':data.target_hash, 'id':data.id}, function(err, cursor){ | |
cursor.toArray(function(err, docs){ | |
console.log(docs); | |
if (docs.length == 0) { |
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
<%= form_for(@user, :action => "/users/#{@user.login}") %> | |
<%= hidden_field :value => "DELETE", :name => "_method" %> | |
<div class="actions"> | |
<input type="image" name="submit" src="/images/btn-delete_user.png" id="deleteUser" /> | |
or <%= link_to "cancel", resource(:users) %> | |
</div> | |
<% end =%> |