Skip to content

Instantly share code, notes, and snippets.

View ionelmc's full-sized avatar
🙃
wat

Ionel Cristian Mărieș ionelmc

🙃
wat
View GitHub Profile
<!DOCTYPE html>
<html>
<head>
<script src="http://ionelmc.github.io/polymer-json-box/bower_components/platform/platform.js"></script>
<script src="http://ionelmc.github.io/polymer-json-box/bower_components/polymer/polymer.js"></script>
<meta charset="UTF-8">
<style>
</style>
</head>
<body unresolved>
<!DOCTYPE html>
<html>
<head>
<script src="http://cdnjs.cloudflare.com/ajax/libs/paper.js/0.9.12/paper.js"></script>
<meta charset="utf-8">
<title>JS Bin</title>
<script src="http://www.polymer-project.org/platform.js"></script>
<link rel="import" href="http://www.polymer-project.org/components/polymer/polymer.html">
</head>
<body>
<!DOCTYPE html>
<html>
<head>
<script src="http://cdnjs.cloudflare.com/ajax/libs/paper.js/0.9.12/paper.js"></script>
<meta charset="utf-8">
<title>JS Bin</title>
<script src="http://www.polymer-project.org/platform.js"></script>
<link rel="import" href="http://www.polymer-project.org/components/polymer/polymer.html">
<style id="jsbin-css">
asdfsadfadsf
@ionelmc
ionelmc / gist:0e778de90ac75b5f003a
Last active August 29, 2015 14:06
My packages on PyPI
aspectlib
cogen
django-admin-customizer
django-admin-utils
django-customfields
django-easyfilters-ex
django-monkey-team
django-prefetch
django-redisboard
django-secdownload-storage
@ionelmc
ionelmc / trololo.log
Created January 6, 2015 12:54
About setuptools
14:46 <ssbr`> nedbat: looks like this will do the right thing by munging sys.path
14:46 <ssbr`> *sighhhh*
14:47 <ssbr`> _habnabit: fine whatever you win, setuptools, woo
14:47 saschpe → zz_saschpe
14:47 — ssbr` cheers halfheartedly. quarterheartedly. notheartedly.
14:47 → Avaris and linux-fox joined ⇐ ruukasu and zoso quit
14:48 <nedbat> ssbr`: there's a reason people use setuptools
14:48 ⇐ linux-fox quit (~netinvman@122.156.252.10) Client Quit
14:48 <ionelmc> ssbr`: past setuptools trauma?
14:48 <ssbr`> ionelmc: I've spent years helping people debug setuptools' mistakes and overall crappiness
@ionelmc
ionelmc / bad.py
Created January 12, 2015 23:27
Pytest fixture linting
# This should not emit any complaints
import pytest
class App:
def __init__(self, smtp):
self.smtp = smtp
@pytest.fixture(scope="module")
def app(smtp):
return App(smtp)
@ionelmc
ionelmc / custom.html
Last active August 29, 2015 14:14
EventDrops demo
<!DOCTYPE html>
<meta charset="utf-8">
<html>
<head>
<link rel="stylesheet" href="style.css" />
<style type="text/css">
body {
font-family: verdana, sans-serif;
}
</style>
Template variable Default Description
project_name
SESSION.buffers.each(function (b) { if (!b.isServerLog()) { b.setShowingJoinPartPref(false) } });
SESSION.buffers.each(function (b) { if (!b.isServerLog()) { b.setTrackingUnreadPref(false) } });
SESSION.buffers.each(function (b) { if (!b.isServerLog() && b.getName() != "#python-ro") { b.setShowingJoinPartPref(false) } });
SESSION.buffers.each(function (b) { if (!b.isServerLog() && b.getName() != "#python-ro") { b.setTrackingUnreadPref(false) } });
@ionelmc
ionelmc / python-dev.log
Created March 24, 2015 17:12
Fun times with simplejson on #python-dev
[2015-01-21 16:12:19] <ionelmc> haypo: it only happens when i got simplejson installed :-)
[2015-01-21 16:13:14] <haypo> ionelmc: so you know the fix, uninstall simplejson :-D
[2015-01-21 16:13:22] <haypo> ionelmc: it looks like a bug in this module
[2015-01-21 16:13:39] <haypo> ionelmc: python 2.7 provides a json module which is based on simplejson
[2015-01-21 16:13:51] <haypo> ionelmc: why not using the "builtin" json module?
[2015-01-21 16:14:08] <ionelmc> cauze someone was too lazy to cleanup the imports
[2015-01-21 16:14:19] <ionelmc> :-)
[2015-01-21 16:14:42] <ionelmc> haypo: so no speed difference?
[2015-01-21 16:14:50] <ionelmc> that someone is also too lazy to test :)
[2015-01-21 16:15:08] <Taggnostr2> ionelmc, in 2.7 the json module is accelerated in C, so it should be fast