Skip to content

Instantly share code, notes, and snippets.

View sesam's full-sized avatar

Simon B. sesam

  • LJ
View GitHub Profile
@sesam
sesam / pl.json
Created October 17, 2021 18:27
for kinga
{
"projects": {
"my_projects": "Moje projekty",
"reload_projects_tooltip": "Odśwież projekty",
"create_new_project_button": {
"text": "Nowy projekt",
"subtext_1": "Tworzyć",
"subtext_1_tooltip": "Utwórz nowy projekt",
"subtext_2": "Utwórz przez podłączenie <br> do zewnętrznej bazy danych",
"subtext_2_tooltip": "Obsługuje MySQL, PostgreSQL, SQL Server & Sqlite"
@sesam
sesam / i18n.js.patch
Last active March 13, 2021 21:41
PATCH: Enable webpack code splitting and load translations on demand
+export default function SuspendableLanguageSetter() {
+ return (
+ <React.Suspense fallback={""}>
+ <LanguageSetter />
+ </React.Suspense>
+ );
+}
-const translations = () => ({

Keybase proof

I hereby claim:

  • I am sesam on github.
  • I am sesammases (https://keybase.io/sesammases) on keybase.
  • I have a public key ASBitqoX5eTsMBeQYC24AGIPwYaeGRa0se-ExIW_H0atDQo

To claim this, I am signing this object:

@sesam
sesam / hook_test.js
Last active August 29, 2015 14:10
hook_test
module['exports'] = function anything_goes (hook) {
hook.debug(hook.params);
var p1 = hook.params['p1'];
hook.debug(p1);
var stream = hook.open(p1);
stream.pipe(hook.res)
};
module['exports'].schema = {
"p1": {
"type": "string"
@sesam
sesam / diff-plugin.lua
Created February 4, 2011 14:23
make !ping more explanative for noobs
diff -r 766f4225110b plugins/ping.lua
--- a/plugins/ping.lua Tue Jan 11 23:35:42 2011 +0100
+++ b/plugins/ping.lua Fri Feb 04 15:21:45 2011 +0100
@@ -5,8 +5,10 @@
local jid = command.param;
if jid then
bot.stream:ping(jid, function (time, jid, error)
+ local kind = "server";
+ if string.find(jid, "@") then kind = "client";
if time then
@sesam
sesam / gist:385101
Created April 30, 2010 12:06
2010-04-30.patch
diff --git a/web/data/templates/overview.html b/web/data/templates/overview.html
index 272d1df..2e8111b 100644
--- a/web/data/templates/overview.html
+++ b/web/data/templates/overview.html
@@ -21,7 +21,7 @@
{% for c in top_constituencies_by_amount %}
<tr>
<td><a href="{% url constituency c.slug %}">{{ c.name }}</a></td>
- <td>&euro;{{ c.total|floatformat:2|intcomma }}</td>
+ <td class="eur">&euro;{{ c.total|floatformat:2|intcomma }}</td>
#!/usr/bin/env python
import os
import sys
import cairo
SSD_HOST = "max"
HDD_HOST = "sam"
diff --git a/etherpad/src/plugins/twitterStyleTags/hooks.js b/etherpad/src/plugins/twitterStyleTags/hooks.js
index 003bc32..e49439e 100644
--- a/etherpad/src/plugins/twitterStyleTags/hooks.js
+++ b/etherpad/src/plugins/twitterStyleTags/hooks.js
@@ -10,7 +10,8 @@ function handlePath() {
function padModelWriteToDB(args) {
/* Update tags for the pad */
- var new_tags = args.pad.text().match(new RegExp("#[^,#=!\\s][^,#=!\\s]*", "g"));
+ var atext = args.pad.text();