John Obelenus, [email protected]
class BaseJsonWebsocketConsumer(JsonWebsocketConsumer):
def send(self, content, close=False):
"""
| ==> default: Notice: /Stage[main]/Supervisord/File[/etc/supervisord]: Dependency Exec[install-wkhtmltopdf] has failures: true | |
| ==> default: Warning: /Stage[main]/Supervisord/File[/etc/supervisord]: Skipping because of failed dependencies | |
| ==> default: Notice: /Stage[main]/Supervisord/File[/etc/init.d/supervisord]: Dependency Exec[install-wkhtmltopdf] has failures: true | |
| ==> default: Warning: /Stage[main]/Supervisord/File[/etc/init.d/supervisord]: Skipping because of failed dependencies | |
| ==> default: Notice: /Stage[main]/Supervisord/File[/etc/supervisord/conf.d]: Dependency Exec[install-wkhtmltopdf] has failures: true | |
| ==> default: Warning: /Stage[main]/Supervisord/File[/etc/supervisord/conf.d]: Skipping because of failed dependencies | |
| ==> default: Notice: /Stage[main]/Supervisord/File[/etc/supervisord.conf]: Dependency Exec[install-wkhtmltopdf] has failures: true | |
| ==> default: Warning: /Stage[main]/Supervisord/File[/etc/supervisord.conf]: Skipping because of failed dependencies | |
| ==> default: Notice: /Stage[main]/Supe |
| #!/usr/bin/env node | |
| var util = require('util'); | |
| console.log('start'); | |
| var A = 14; | |
| var K = 13; | |
| var Q = 12; |
John Obelenus, [email protected]
class BaseJsonWebsocketConsumer(JsonWebsocketConsumer):
def send(self, content, close=False):
"""
| xml = """<?xml version="1.0" encoding="US-ASCII" standalone="yes"?> | |
| <?adf version="1.0"?> | |
| <adf> | |
| <prospect status="new"> | |
| ... | |
| </prospect> | |
| </adf> | |
| """ | |
| from bs4 import BeautifulSoup |
| addFoo(e, target_variable){ | |
| if(e.target.checked){ | |
| this.setState({ | |
| show: [...this.state.show, target_variable]}) | |
| }else{ | |
| var index = this.state.show.indexOf('target_variable'); | |
| if (index > -1) { | |
| this.state.show.splice(index, 1); | |
| this.setState({ | |
| show: [...this.state.show,]}) |
| # STEP 1 REMOTE | |
| import datetime | |
| before = datetime.date(2018, 5, 15) | |
| after = datetime.date(2018, 5, 1) | |
| from shelby.models import Lead | |
| qs = Lead.objects.filter(created_on__date__lt=before, created_on__date__gte=after, status=Lead.STATUS_NEW).values_list('id', flat=True) | |
| for lead_id in qs: | |
| print(lead_id) # copy that output into "new_leads.txt" | |
| class SourceDimension(models.Model): | |
| source_id = models.IntegerField(db_index=True) | |
| name = models.CharField(max_length=256, db_index=True) | |
| category = models.CharField(max_length=128, default='') | |
| fuzz_grouped_source_name = models.CharField(max_length=256, default='') | |
| fuzz_ratio = models.PositiveIntegerField(default=0) | |
| KNOWN_GOOD = [ | |
| # These are first on purpose | |
| 'Edmunds CarCode', 'Edmunds Price Promise', 'TrueCar/USAA', |
| import Browser | |
| import Html exposing (Html, Attribute, div, input, text) | |
| import Html.Attributes exposing (..) | |
| import Html.Events exposing (onInput) | |
| import Regex exposing (..) | |
| main = | |
| Browser.sandbox | |
| { init = init |
| // Getting defaultdict from Python in JS | |
| class DefaultDict extends Object { | |
| constructor(defaultInit) { | |
| return new Proxy({}, { | |
| get: (target, name) => name in target ? | |
| target[name] : | |
| (target[name] = typeof defaultInit === 'function' ? | |
| new defaultInit().valueOf() : | |
| defaultInit) | |
| }) |
| > PROJECT_NOTES.md | |
| echo "# AUTOMATED NOTE COLLECTOR" >> PROJECT_NOTES.md | |
| leasot -r markdown -S --tags XXX BUG */*.py */*/*.py */templates/* */templates/*/* */static/js/* */static/scss/* assets/js/* >> PROJECT_NOTES.md | |
| git add PROJECT_NOTES.md |