I hereby claim:
- I am bennylope on github.
- I am bennylope (https://keybase.io/bennylope) on keybase.
- I have a public key whose fingerprint is 515A 85FE D3A7 9935 5E9E 2F6C CA23 6BC4 054B 7C47
To claim this, I am signing this object:
if CONF.has_key?("mounts") | |
for folder in CONF['mounts'] | |
config.vm.share_folder(folder['name'], folder['virtual'], folder['host'], :nfs => true) | |
end | |
end |
require "yaml" | |
# Load up our vagrant config files -- vagrantconfig.yaml first | |
_config = YAML.load(File.open(File.join(File.dirname(__FILE__), | |
"vagrantconfig.yaml"), File::RDONLY).read) | |
# Local-specific/not-git-managed config -- vagrantconfig_local.yaml | |
begin | |
_config.merge!(YAML.load(File.open(File.join(File.dirname(__FILE__), | |
"vagrantconfig_local.yaml"), File::RDONLY).read)) |
class MyListView(ListView): | |
def get(self, request, *args, **kwargs): | |
self.object_list = self.get_queryset() | |
search_query = request.GET.get('search_query') | |
if search_query: | |
self.object_list = self.object_list.filter(name=search_query) | |
context = self.get_context_data(object_list=self.object_list) | |
return self.render_to_response(context) |
I hereby claim:
To claim this, I am signing this object:
-- from http://www.haskellforall.com/2015/10/basic-haskell-examples.html | |
import System.Directory | |
import System.Environment | |
import System.IO | |
putTodo :: (Int, String) -> IO () | |
putTodo (n, todo) = putStrLn (show n ++ ": " ++ todo) | |
prompt :: [String] -> IO () | |
prompt todos = do |
The primary Vagrantfile is set up to use Ubuntu 12.04 LTS (Precise) and Puppet configuration has been commented out.
import re | |
import simplejson | |
from django.http import HttpResponse | |
from django.conf import settings | |
class JSONResponse(HttpResponse): | |
def __init__(self, request, data): | |
indent = 2 if settings.DEBUG else None |
import csv | |
import requests | |
from bs4 import BeautifulSoup | |
def is_generator(tag): | |
return True if tag.attrs.get('name', '') == 'generator' else False | |
#!/usr/bin/env python | |
# -*- coding: utf-8 -*- | |
import re | |
import requests | |
from bs4 import BeautifulSoup | |
url = "http://www.wellfireinteractive.com" |