Skip to content

Instantly share code, notes, and snippets.

View dflemstr's full-sized avatar

David Flemström dflemstr

View GitHub Profile
#[macro_use]
extern crate error_chain;
#[macro_use]
extern crate quick_error;
quick_error! {
#[derive(Debug)]
pub enum ForeignA {
Foo {
description("foo")
gn gen out.gn/build --script-executable=/usr/bin/python2 --args='is_component_build=false is_debug=false is_official_build=true optimize_for_size=true v8_use_snapshot=true v8_use_external_startup_data=false v8_enable_i18n_support=false'
From 4519d89bc6e5076fb9f84e495674537d0ade0110 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?David=20Flemstr=C3=B6m?= <[email protected]>
Date: Mon, 31 Oct 2016 00:15:07 +0100
Subject: [PATCH] Version 5.6.178-1: use system ICU + fix pkg-config
---
PKGBUILD | 65 +++++++++++++++++++++++++++++++++----------------------
v8.pc | 1 +
v8_libbase.pc | 10 +++++++++
v8_libplatform.pc | 10 +++++++++
#![feature(prelude_import)]
#![no_std]
#[prelude_import]
use std::prelude::v1::*;
#[macro_use]
extern crate std as std;
#[macro_use]
extern crate error_chain;
extern crate a;
/**
* A list of words.
*/
class WordList {
int maxCapacity = 1024;
String[] words;
/**
* Load the words
using Slab as org.marble.block.Slab
using Image as org.marble.special.Image
using CheckpointBlock as org.marble.special.CheckpointBlock
using Transformer as org.marble.special.Transformer
using WinBlock as org.marble.special.WinBlock
using PointOrb as org.marble.special.PointOrb
using LifeOrb as org.marble.special.LifeOrb
using Wall as org.marble.block.Wall
using Lantern as org.marble.block.Lantern
From b4ac57c946877f8a029c9ccd94b47ad9b1af8541 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?David=20Flemstr=C3=B6m?= <[email protected]>
Date: Fri, 31 Aug 2018 17:40:29 +0200
Subject: [PATCH 1/2] Make build work with yay
---
PKGBUILD | 16 +++++++++++++---
1 file changed, 13 insertions(+), 3 deletions(-)
diff --git a/PKGBUILD b/PKGBUILD
\documentclass[a4paper,10pt,swedish]{memoir}
\usepackage{listings}
\usepackage{minted}
%\usepackage{fancyhdr}
\usepackage{xunicode}
\usepackage{xltxtra}
\DeclareUTFcharacter[\UTFencname]{x00A0}{\nobreakspace}
\usepackage{polyglossia}
\usepackage[pdfusetitle,bookmarks=true,
//! Demonstrates an SPI master. We try to read data from
//! an Adafruit AirLift.
#![no_std]
#![no_main]
extern crate panic_halt;
use bsp::hal::gpio::IntoGpio;
use core::fmt::Debug;
import json
import os
import subprocess
from os import path
# Which k8s versions to support; this is only used to support the kubeval --kubernetes-version flag
versions = ["master"]
crd_data = json.loads(
subprocess.check_output(["kubectl", "get", "customresourcedefinitions", "-o", "json"]))