1,122 Matching Annotations
  1. Jun 2020
  2. May 2020
  3. Apr 2020
    1. def save(self, *args, **kwargs): return

      def delete(self, *args, **kwargs): return

      from django.db import models

      class MyReadOnlyModel(models.Model): class Meta: managed = False

  4. Mar 2020
  5. Feb 2020
    1. Hi all, I while ago here I asked about using nix with drone.io (a CI system which uses docker), to deal with push based tests. I previously reported back with a solution with gitlab, but I did end up with a workable (not perfect) solution for drone. On the 'drone agent' machine run this once: # docker volume create nix # docker run --rm -v nix:/newnix nixos/nix cp -a /nix/store /nix/var /newnix in the .drone.yml files: pipeline: build: image: nixos/nix commands: ... volumes: - nix:/nix/ And whenever you want to update nixchannel: # docker run -v nix:/nix/ --rm -ti nixos/nix nix-channel --update This will share the /nix directory with every build, so rebuild (and downloads!) are kept to a minimum.

      Hi all,

      I while ago here I asked about using nix with drone.io (a CI system which uses docker), to deal with push based tests. I previously reported back with a solution with gitlab, but I did end up with a workable (not perfect) solution for drone.

      On the 'drone agent' machine run this once:

      # docker volume create nix
      # docker run --rm -v nix:/newnix nixos/nix cp -a /nix/store /nix/var /newnix
      

      in the .drone.yml files:

      pipeline:
        build:
          image: nixos/nix
          commands:
            ...
          volumes:
            - nix:/nix/
      

      And whenever you want to update nixchannel:

      # docker run -v nix:/nix/ --rm -ti nixos/nix nix-channel --update
      

      This will share the /nix directory with every build, so rebuild (and downloads!) are kept to a minimum.

  6. Jan 2020
  7. Dec 2019
    1. Clojure has a programmatic macro system which allows the compiler to be extended by user code. Macros can be used to define syntactic constructs which would require primitives or built-in support in other languages. Many core constructs of Clojure are not, in fact, primitives, but are normal macros.
  8. Nov 2019
  9. Oct 2019
  10. Sep 2019
  11. Aug 2019
  12. Jul 2019
  13. Jun 2019