Skip to content

Instantly share code, notes, and snippets.

Avatar

Darian V Schramm dvschramm

View GitHub Profile
View gist:ad992c314875cc4a2cfaccf05f1307a5
Now using node v0.10.32 (npm v1.4.28)
npm WARN package.json parseuri@0.0.2 No repository field.
npm WARN package.json parseuri@0.0.2 No README data
npm WARN package.json parsejson@0.0.1 No repository field.
npm WARN package.json parsejson@0.0.1 No README data
npm WARN package.json parseqs@0.0.2 No repository field.
npm WARN package.json parseqs@0.0.2 No README data
npm WARN package.json uid2@0.0.3 No repository field.
npm WARN package.json uid2@0.0.3 No README data
npm WARN package.json batch@0.5.0 No repository field.
View gist:319d89b7ca6953f1d37a908f2941bad4
warning Your current version of Yarn is out of date. The latest version is "1.16.0", while you're on "1.9.4".
info To upgrade, run the following command:
$ sudo yum install yarn
$ cd server && npm install
audited 25 packages in 0.742s
found 1 high severity vulnerability
run `npm audit fix` to fix them, or `npm audit` for details
Done in 16.24s.
> jollo-web@0.1.0 build /home/ec2-user/jollo-web
View gist:27d0fdd478bddcb865b8b07a64dd22b2
[ec2-user@ip-172-31-19-90 jollo-web]$ npm run build
> jollo-web@0.1.0 build /home/ec2-user/jollo-web
> react-app-rewired build
Creating an optimized production build...
Failed to compile.
./src/containers/Bid/index.js
Cannot find module: '@material-ui/core/Fab'. Make sure this package is installed.
View task.py
import os
import django
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "my.settings")
django.setup()
from myapp.models import (
MyModel
)
View serializers.py
add this to your serializer, note the getlist:
def get_queryset(self):
queryset = MyObject.objects.all()
multiple_param = self.request.query_parameters.getlist('multiple_param', None)
if multiple_param:
queryset = queryset.filter(multiple_param__in=multiple_param)
return queryset
View gist:8f67806e827d071bd5cd703cd2cb1a5d
function joinRoom() {
if ($('.name').val().trim().length != 0) {
// if (userType == 1) {
// AgentCall(token);
// } else {
// CustomerCall(token);
// }
$.ajax({
View app.js
const video = document.getElementById('local-video');
const button = document.getElementById('button');
const select = document.getElementById('select');
let currentStream;
var st;
var source;
var roomInfo;
const videoConstraints = {};
var track;
var isFirstTime = true;
View room_template.html
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>{{ title }}</title>
<link href="https://fonts.googleapis.com/css?family=Lato:300,400,700" rel="stylesheet">
<link rel="stylesheet" type="text/css" href="/static/css/style.css">
<meta http-equiv="x-ua-compatible" content="IE=11" >
View gist:d149bc6d62d2f3c927e7d88afa650a80
Process Process-1:
Traceback (most recent call last):
File "/usr/lib64/python3.4/multiprocessing/process.py", line 254, in _bootstrap
self.run()
File "/usr/lib64/python3.4/multiprocessing/process.py", line 93, in run
self._target(*self._args, **self._kwargs)
File "/home/dschramm/ares-game-server/.tox/py34/lib/python3.4/site-packages/templated_docs/__init__.py", line 95, in _convert_subprocess
with lo.documentLoad(filename) as doc:
File "/home/dschramm/ares-game-server/.tox/py34/lib/python3.4/site-packages/pylokit/lokit.py", line 115, in documentLoad
raise LoKitImportError(self.getError())
View gist:e0dd006fd29f63c9553f22676aab8fc6
DEBUG:yowsup.stacks.yowstack:Initializing stack
DEBUG:yowsup.stacks.yowstack:Constructed Network Layer
DEBUG:yowsup.stacks.yowstack:Constructed Stanza Regulator Layer
DEBUG:yowsup.stacks.yowstack:Constructed Crypt Layer
DEBUG:yowsup.stacks.yowstack:Constructed Coder Layer
DEBUG:yowsup.stacks.yowstack:Constructed Logger Layer
DEBUG:yowsup.stacks.yowstack:Constructed <yowsup.layers.axolotl.layer_control.AxolotlControlLayer object at 0x10fe0a400>
DEBUG:yowsup.stacks.yowstack:Constructed Axolotl Layer - <yowsup.layers.axolotl.layer_receive.AxolotlReceivelayer object at 0x10f6880f0>
DEBUG:yowsup.stacks.yowstack:Constructed Authentication Layer - Messages Layer - Receipt Layer - Ack Layer - Presence Layer - Ib Layer - Iq Layer - notification Ib Layer - Iq Layer - Chatstate Layer - call Layer - Groups Iq Layer - Media Layer - Privacy Layer - Profiles Layer
DEBUG:yowsup.stacks.yowstack:Constructed Interface Layer