This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from django import forms | |
from django.template.defaultfilters import slugify | |
import django | |
import fastn.django | |
from . import models | |
from .forms import VisibilityField | |
from slides import renderer_utils | |
import subprocess |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- coding: utf-8 -*- | |
from __future__ import division | |
from __future__ import absolute_import | |
from __future__ import print_function | |
from __future__ import unicode_literals | |
class Settings(object): | |
def __init__(self): | |
self.settings = dict( |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- import: fpm/processors | |
-- ftd.text: todo app | |
-- record todo-item: | |
integer id: | |
caption title: | |
string status: | |
body description: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- import: fpm | |
-- fpm.package: hello |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- import: fpm | |
-- fpm.package: expander |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
tcp:::send | |
/args[1]->dport == 80/ | |
{ | |
printf( | |
"Packet sent: %s:%u -> %s:%u on behalf of %s (PID: %d, UID: %d)\n", | |
args[1]->ip_saddr, args[1]->sport, args[1]->ip_daddr, | |
args[1]->dport, execname, pid, uid); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diesel print-schema > src/schema.rs | |
sed -i '' -e 's/Citext/mycrate::sql_types::Citext/g' src/schema.rs |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"middleware": { | |
"critical": false, | |
"result_type": "list", | |
"fields": { | |
"path": "string", | |
"error": "string", | |
"form_error": "string" | |
} | |
}, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module Triangles exposing (main) | |
import Angle exposing (Angle) | |
import Animation | |
import Browser | |
import Camera3d | |
import Color | |
import Direction3d | |
import Html exposing (Html) | |
import Length |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
preexec () { | |
START="$(python -c 'import time; print(time.time())')" | |
LAST_CMD=$1 | |
export SHELL_ID="$(python -c 'import uuid; print(uuid.uuid4())')" | |
} | |
precmd () { | |
LAST=$? | |
if [ -z ${START} ]; | |
then |
NewerOlder