This file contains hidden or 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 jyu.flowextensions import _ | |
from plone.api.exc import UserNotFoundError | |
from plone.portlet.static.static import AddForm | |
from plone.portlet.static.static import Assignment | |
from plone.portlet.static.static import EditForm | |
from plone.portlet.static.static import IStaticPortlet | |
from plone.portlet.static.static import Renderer | |
from Products.CMFCore.interfaces import IContentish | |
from venusianconfiguration import configure |
This file contains hidden or 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
{ stdenv, lib, fetchurl, unzip, bc, kernalPackages }: | |
with lib; | |
let modDestDir = "$out/lib/modules/${kernalPackages.modDirVersion}/kernel/drivers/net/wireless/realtek/rtlwifi"; | |
in stdenv.mkDerivation rec { | |
pname = "tlwn277n"; | |
version = "3.180510"; |
This file contains hidden or 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 'plone-logged-in'; |
This file contains hidden or 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
{ pkgs ? import <nixpkgs> {} | |
, pythonPackages ? pkgs.python36Packages | |
}: | |
with pkgs; | |
let self = rec { | |
# patches |
This file contains hidden or 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 robot.libraries.BuiltIn import BuiltIn | |
import cv2 | |
import shutil | |
import tempfile | |
class TemporaryDirectory(object): | |
def __enter__(self): | |
self.name = tempfile.mkdtemp() |
This file contains hidden or 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
{}: | |
with builtins; | |
rec { | |
toZConfigValue = value: | |
if (isString value) then value else | |
if (isInt value) then toString value else | |
if (isBool value) && value then "on" else |
This file contains hidden or 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
<tal:block define="value nocall:view/data/html|nothing; | |
output_relative_to nocall:value/@@output_relative_to|nothing" | |
condition="output_relative_to" | |
content="structure python:output_relative_to(context)" /> |
This file contains hidden or 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
#!/usr/bin/env nix-shell | |
{ rev ? "beb1f1ea91ef15d5f1b272108b0cf964e47665f2" | |
, sha256 ? "02n73jmc0vbb2dq5af70zxms63jbgbnzc70fmw50mcq07fpwa3p9" | |
, pkgs ? import ((import <nixpkgs> {}).pkgs.fetchFromGitHub { | |
owner = "NixOS"; | |
repo = "nixpkgs"; | |
inherit rev; | |
inherit sha256; | |
}) {} | |
, pythonPackages ? pkgs.python27Packages |
This file contains hidden or 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 ast | |
tree = ast.parse(open('setup.py').read()) | |
names = {} | |
def strings(tree): | |
ret = [] | |
for node in ast.walk(tree): | |
if isinstance(node, ast.Name): |
This file contains hidden or 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
<?xml version="1.0"?> | |
<registry xmlns:i18n="http://xml.zope.org/namespaces/i18n" | |
i18n:domain="plone"> | |
<records prefix="plone.app.mosaic.structure_tiles.card" | |
interface="plone.app.mosaic.interfaces.ITile"> | |
<value key="default_value"><div class="card-header">Header</div><div class="card card-block"><h3 class="card-title">TItle 1</h3><p class="card-text">Content</p></div></value> | |
<value key="category">structure</value> | |
<value key="read_only">False</value> | |
<value key="name">card</value> |