Skip to content

Instantly share code, notes, and snippets.

#bash script to start workers
# Load RVM into a shell session *as a function*
if [[ -s "$HOME/.rvm/scripts/rvm" ]] ; then
# First try to load from a user install
source "$HOME/.rvm/scripts/rvm"
elif [[ -s "/usr/local/rvm/scripts/rvm" ]] ; then
# Then try to load from a root install
source "/usr/local/rvm/scripts/rvm"
else
printf "ERROR: An RVM installation was not found.\n"
POST http://demo.docusign.net/restapi/v2/accounts/12345/envelopes
X-DocuSign-Authentication: <DocuSignCredentials><Username>{name}</Username><Password>{password}</Password><IntegratorKey>{integrator_key}</IntegratorKey></DocuSignCredentials>
Accept: application/json
Content-Type: multipart/form-data; boundary=MYBOUNDARY
--MYBOUNDARY
Content-Type: application/json
Content-Disposition: form-data
{
<div class="stnd-in">
{% if collection.title == 'House' %}
{% include 'home-collection-slideshow' %}
{% elsif collection.title == 'Flasks' %}
{% include 'flasks-collection-slideshow' %}
{% elsif collection.title == 'Travel' %}
{% include 'travel-collection-slideshow' %}
{% elsif collection.title == 'Grooming' %}
{% include 'grooming-collection-slideshow' %}
{% elsif collection.title == "Blood and Champagne" %}
class OverrideFileField(FileField):
+ def __init__(self, *args, **kwargs):
+ super(OverrideFileField, self).__init__(*args, **kwargs)
+
+ def clean(self, *args, **kwargs):
+ data = super(OverrideFileField, self).clean(*args, **kwargs)
+
+ file = data.file
+
+ if not re.match(FILENAME_REGEX, file.name.replace("/","")):
# the admin model
class Statistic(models.Model):
""" statistic type, holds csv data
"""
title = models.CharField(max_length=128)
stat_type = models.SmallIntegerField(choices=STAT_TYPE, null=True, blank=True, max_length=16, default=0)
loop = models.CharField(max_length=32,
choices=LOOP_CHOICES,
default='false')
class ContentUploadToDir(FileField):
def __init__(self, *args, **kwargs):
self.content_types = kwargs.pop("content_types")
self.max_upload_size = kwargs.pop("max_upload_size")
print("WHAT THE FUCK")
super(ContentUploadToDir, self).__init__(*args, **kwargs)
def clean(self, *args, **kwargs):
data = super(ContentUploadToDir, self).clean(*args, **kwargs)
class ContentUploadToDir(FileField):
def __init__(self, *args, **kwargs):
self.content_types = kwargs.pop("content_types")
self.max_upload_size = kwargs.pop("max_upload_size")
import logging
logging.debug('foo')
super(ContentUploadToDir, self).__init__(*args, **kwargs)
def clean(self, *args, **kwargs):
WARNING!!! version ranges found for:
[clj-aws-s3 "0.3.10"] -> [com.amazonaws/aws-java-sdk "1.7.5"] -> [joda-time "[2.2,)"]
Consider using [clj-aws-s3 "0.3.10" :exclusions [joda-time]].
java.lang.ClassCastException: clojure.lang.PersistentVector cannot be cast to clojure.lang.Named
at clojure.core$name.invoke (core.clj:1518)
leiningen.npm.deps$resolve_in_jar_dep.invoke (deps.clj:50)
clojure.lang.AFn.applyToHelper (AFn.java:160)
pigmaarguep|pigmaarguep|hu.fe.n.gkua.n.g.n.iub.i..u.k4.2@gmail.com^M
pigmaarguep|pigmaarguep|h.ufeng.ku.a.n.gn.i.u.b.i...u.k43@gmail.com^M
pigmaarguep|pigmaarguep|h.uf.e.ng.ku.angn.iubi.u.k.41@gmail.com^M
pigmaarguep|pigmaarguep|h.ufe.ng.k.uang.n.i.ub.i.uk4.4@gmail.com^M
pigmaarguep|pigmaarguep|hu.feng.kuangn.i.ubi.uk.3.6@gmail.com^M
(defn for-creds [u]
(assoc (into {} u ) :db/id (:db/id u)))
(defn by-username[uname]
(let [
db (d/db config/conn)
users (d/q '[:find ?e :in $ ?uname :where [?e :username ?uname]]
db uname)]
(if-let [user (first (first users))]