Skip to content

Instantly share code, notes, and snippets.

View eugena's full-sized avatar
💭
🤸🏽

Eugena Mikhaylikova eugena

💭
🤸🏽
View GitHub Profile
@bmispelon
bmispelon / update.py
Created March 2, 2021 09:53
[Django ORM] Updating a JSONField based on the value of another field
"""
How to update JSONField based on the value of another field.
For example:
class MyModel(models.Model):
name = models.CharField(...)
data = models.JSONField()
How to update the MyModel table to store the `name` field inside the `data`
@kas-elvirov
kas-elvirov / license-badges.md
Created March 10, 2017 06:03 — forked from lukas-h/license-badges.md
License Badges for your Project

Markdown License badges

Collection of License badges for your Project's README file. Easily copy and paste the code under the badges into your Markdown files.

Notes

  • Badges are made with Shields.io.
  • This badges do not fully replace the license informations for your projects, they are only emblems for the README, that the user can see the License at first glance.

Want to add a License?

Comment this gist or write me an E-Mail ([email protected])

@alfredobarron
alfredobarron / select2-bootstrap3.css
Created August 19, 2015 21:55
Height select 2 in bootstrap 3.3.4
/**
* Change three lines
*
/* line 11 */
.select2-container .select2-selection--single {
box-sizing: border-box;
cursor: pointer;
display: block;
height: 34px;
user-select: none;
@yusugomori
yusugomori / RestrictedBoltzmannMachine.py
Last active December 6, 2021 21:07
Restricted Boltzmann Machine (RBM) using Contrastive Divergence
#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
Restricted Boltzmann Machine (RBM)
References :
- Y. Bengio, P. Lamblin, D. Popovici, H. Larochelle: Greedy Layer-Wise
Training of Deep Networks, Advances in Neural Information Processing
Systems 19, 2007