Skip to content

Instantly share code, notes, and snippets.

View Slabity's full-sized avatar

Slabity Slabity

View GitHub Profile
{config, pkgs, ...}:
{
imports = [
<nixpkgs/nixos/modules/installer/cd-dvd/installation-cd-graphical-gnome.nix>
<nixpkgs/nixos/modules/installer/cd-dvd/channel.nix>
];
nixpkgs.overlays = [
(self: super: { inherit (super.pkgsi686Linux) grub2_efi; })
];
self: super:
{
Fabric = super.python2Packages.Fabric.overridePythonAttrs (oldAttrs: rec {
pname = "fabric";
version = "1.14.1";
src = super.python2Packages.fetchPypi {
inherit pname version;
sha256 = "93684ceaac92e0b78faae551297e29c48370cede12ff0f853cdebf67d4b87068";
};
[package]
name = "relm-testing"
version = "0.1.0"
authors = ["Tyler Slabinski <tslabinski@slabity.net>"]
edition = "2018"
[dependencies]
relm = { git = "https://github.com/antoyo/relm" }
gtk = { git = "https://github.com/gtk-rs/gtk" }
error[E0308]: mismatched types
--> resource/src/resources.rs:66:76
|
66 | device.bind_buffer_memory(block.memory(), block.range().start, buf)
| ^^^
| |
| expected mutable reference, found associated type
| help: consider mutably borrowing here: `&mut buf`
|
= note: expected type `&mut <B as gfx_hal::Backend>::Buffer`
@Slabity
Slabity / main.rs
Created February 13, 2019 17:04
Simple rendy example
extern crate winit;
extern crate rendy;
type Backend = rendy::vulkan::Backend;
type Config = rendy::factory::Config;
type Factory = rendy::factory::Factory<Backend>;
type GraphBuilder = rendy::graph::GraphBuilder<Backend, ()>;
type PresentNode = rendy::graph::present::PresentNode<Backend>;
#######
LanguageClient 0.1.119
#######
13:01:58 INFO main src/vim.rs:92 => None {"jsonrpc":"2.0","method":"eval","params":["[!!get(g:, 'LanguageClient_autoStart', 1), get(g:, 'LanguageClient_serverCommands', {}), get(g:, 'LanguageClient_selectionUI', v:null), get(g:, 'LanguageClient_trace', v:null), expand(get(g:, 'LanguageClient_settingsPath', '.vim/settings.json')), !!get(g:, 'LanguageClient_loadSettings', 1), get(g:, 'LanguageClient_rootMarkers', v:null), get(g:, 'LanguageClient_changeThrottle', v:null), get(g:, 'LanguageClient_waitOutputTimeout', v:null), !!get(g:, 'LanguageClient_diagnosticsEnable', 1), get(g:, 'LanguageClient_diagnosticsList', 'Quickfix'), get(g:, 'LanguageClient_diagnosticsDisplay', {}), get(g:, 'LanguageClient_windowLogMessageLevel', 'Warning'), get(g:, 'LanguageClient_hoverPreview', 'Auto'), get(g:, 'LanguageClient_completionPreferTextEdit', 0), has('nvim')]"],"id":4}
13:01:58 INFO reader-main src/vim.rs:380 <= None {"id": 4, "jsonrpc": "2.0", "result": [1, {"c": ["/nix/store/2scjiq
fn main() {
print_message("Hello world");
}
fn print_message(msg: &str) {
println!("{}", msg);
}
#! /usr/bin/env python
import datetime
import difflib
import gzip
# Mapping between files and their archived locations
# Must be formatted with a datestamp in the form of `YYmmdd`
ARCHIVE_CONF_FMTS = [
("flow.conf", "/archive/{0}/eod/flow-eod_{0}.conf.gz"),
#!/usr/bin/env python
import datetime as dt
import holiday
import gzip
# Mapping between files and their archived locations
# Must be formatted with a datestamp in the form of `YYmmdd`
ARCHIVE_CONF_FMTS = [
("flow.conf", "/archive/{0}/eod/flow-eod_{0}.conf.gz"),
let
pkgs = import <nixpkgs> {};
in with pkgs; stdenv.mkDerivation rec {
name = "vulkan-env";
nativeBuildInputs = [
cmake
pkgconfig
];