Skip to content

Instantly share code, notes, and snippets.

View jaishirb's full-sized avatar

Jaisir Bayuelo jaishirb

  • Barranquilla, Colombia
  • 23:25 (UTC -05:00)
View GitHub Profile
@jaishirb
jaishirb / main.py
Created October 18, 2017 18:30
Get the minimum n and k values in order to get a value greater than or equal to a constant c.
from scipy.special import lambertw
from scipy.special import gamma
import math
import time
e = math.e
def l_func(x):
c = 0.036534
@jaishirb
jaishirb / _orders
Last active January 6, 2020 05:55 — forked from osw4l/celery_beat.conf
deploy
# first steps if you have locales issues
sudo dpkg-reconfigure locales
sudo apt install language-pack-en
sudo locale-gen en_US en_US.UTF-8
nano /etc/default/locale
LANG=en_US.UTF-8
LC_ALL="en_US.UTF-8”
LANGUAGE="en_US:en"
# first steps :)
@jaishirb
jaishirb / media-query.css
Created January 10, 2020 14:38 — forked from gokulkrishh/media-query.css
CSS Media Queries for Desktop, Tablet, Mobile.
/*
##Device = Desktops
##Screen = 1281px to higher resolution desktops
*/
@media (min-width: 1281px) {
//CSS
@jaishirb
jaishirb / consumer.py
Created April 29, 2020 02:13 — forked from osw4l/a_routing.py
channels 2 example
import json
from asgiref.sync import async_to_sync
from channels.generic.websocket import WebsocketConsumer
from apps.utils.print_colors import _green
class UserRequestConsumer(WebsocketConsumer):
def connect(self):
self.user_id = self.scope['url_route']['kwargs']['user_id']
@jaishirb
jaishirb / commands.sh
Created April 29, 2020 02:14 — forked from osw4l/commands.sh
deploy django-osw4l 2020
sudo su -
# update so
sudo apt update
sudo apt upgrade
# install curl
sudo apt install curl
#install docker-compose via curl