Skip to content

Instantly share code, notes, and snippets.

View benjohnde's full-sized avatar
brewing code all day long

Ben John benjohnde

brewing code all day long
View GitHub Profile
[
{
"region":"Europe",
"aliases":[
"EU"
],
"countries":{
"country":"Germany",
"aliases":[
"de",
"-DCMAKE_MAKE_PROGRAM=/usr/bin/xcodebuild",
"-DENABLE_CXX11=ON",
"-DCMAKE_CXX_FLAGS=\"-stdlib=libc++\"",
"-DCMAKE_CXX_COMPILER=clang++",
"-DCMAKE EXE LINKER FLAGS=\"-stdlib=libc++\"" ,

Keybase proof

I hereby claim:

  • I am benjohnde on github.
  • I am benjohnde (https://keybase.io/benjohnde) on keybase.
  • I have a public key ASAq_bdztZzp96m0JSyP9wsTIH6a8BsHlC06-k_w6RTTFgo

To claim this, I am signing this object:

#!/bin/bash
for ppt in *.ppsx
do
mkdir tmp
cd tmp
unzip ../$ppt
sed -i '' 's/slideshow/presentation/' \[Content_Types\].xml
sed -i '' 's/x-ms-wmv/mp4/' \[Content_Types\].xml
export default function(name, shapes) {
const generatedRects = shapes.map(({
shapeName,
x,
y,
width,
height,
cornerRadius,
border
}) => {
import React from "react";
import {
render,
Artboard,
View,
} from "react-sketchapp";
const OverlayTemplate = ({ }) => {
const artboardStyle = {
width: 720,
function processShape(part, groupX, groupY, artboardWidth, artboardHeight) {
// FIX: due to react-sketchapp rendering everything into a group
// we need to set part to the children "ShapeGroup" but remember
// the parent's (x, y)
if (part.children().length !== 2) {
groupX += part.frame().x()
groupY += part.frame().y()
const name = part.name()
part = part.children()[1]
part.name = name
function exportArtboard(artboard, file_path) {
var frame = artboard.frame()
var artboardWidth = frame.width()
var artboardHeight = frame.height()
var overlayName = artboard.name().replace(/\.| /g, "")
var shapes = []
var layers = artboard.layers()
import RxFlow
public class BootstrapViewModel: Stepper {
// MARK: - Init
public init() {
self.step.accept(BootstrapStep.welcome)
}
// MARK: - Navigation functions
public func navigateToCustomization() {
import RxFlow
public enum BootstrapStep: Step {
case welcome
case customize
case finish
}