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
| Action<DirectoryPath, FilePath> Package = delegate(DirectoryPath path, FilePath zipfile) { | |
| Information("Package: {0} into {1}", path.ToString(), zipfile.ToString()); | |
| if (IsRunningOnUnix()) { | |
| var processArgs = new ProcessArgumentBuilder(); | |
| processArgs.Append("-r"); | |
| processArgs.Append(zipfile.ToString()); | |
| processArgs.Append("."); | |
| var wd = (Directory(path.ToString())); | |
| Information(wd.ToString()); | |
| StartProcess("zip", new ProcessSettings { WorkingDirectory = wd, Arguments = processArgs }); |
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
| Action<string, string> FetchDependent = delegate(string file, string path) { | |
| var dslmioLibDir = thirdPartyLibDir + Directory(path); | |
| if (!DirectoryExists(dslmioLibDir)) { | |
| Information(file); | |
| var tempFile = DownloadFile(file); | |
| Information(tempFile.ToString()); | |
| if (file.EndsWith("zip")) { | |
| Unzip(tempFile, thirdPartyLibDir); |
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
| Action<FilePath, DirectoryPath> Tar = delegate(FilePath src, DirectoryPath dst) { | |
| Information("tar xf {0} -C {1}", src.ToString(), dst.ToString()); | |
| var processArgs = new ProcessArgumentBuilder(); | |
| processArgs.Append("-C {1} -x -f {0} ", src.ToString(), dst.ToString()); | |
| StartProcess("tar", new ProcessSettings { Arguments = processArgs }); | |
| }; |
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
| Func<string, DirectoryPath> FindDirectory = delegate(string glob) { | |
| var dirs = GetDirectories(glob); | |
| foreach (var dir in dirs) | |
| return dir; | |
| Error("Can't find any file with glob {0}", glob); | |
| return Directory(""); | |
| }; |
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
| root = true | |
| [*] | |
| indent_style = tab | |
| end_of_line = lf | |
| charset = utf-8 | |
| trim_trailing_whitespace = true | |
| insert_final_newline = true | |
| [{package.json,*.yml}] |
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
| ;;; gcal-sync.el --- import google calendar into our dairy -*- lexical-binding: t; -*- | |
| ;; Copyright (C) 2016 Steve Beaulac | |
| ;; Author: Steve Beaulac <steve@sagacity.ca> | |
| ;; Keywords: | |
| ;; This program is free software; you can redistribute it and/or modify | |
| ;; it under the terms of the GNU General Public License as published by | |
| ;; the Free Software Foundation, either version 3 of the License, or |
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
| (defun dired-find-file-below () | |
| "Displays file at point in a new window below current" | |
| (interactive) | |
| (display-buffer-below-selected (find-file-noselect (dired-get-file-for-visit)) nil)) | |
| (define-key dired-mode-map (kbd "C-o") 'dired-find-file-below) |
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
| #include "process_keycode/process_tap_dance.h" | |
| #include "action.h" | |
| #include "action_layer.h" | |
| #include "action_util.h" | |
| #include "quantum.h" | |
| #include "wait.h" | |
| #define TD_PRESSED_EVENT 0xFF | |
| #define ACTION_TAP_DANCE_MOD_TAP(kc1, kc2) { \ |
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
| sudo update-alternatives \ | |
| --install /usr/bin/clang-format clang-format /usr/bin/clang-format-6.0 60 \ | |
| --slave /usr/bin/clang-format-diff clang-format-diff /usr/bin/clang-format-diff-6.0 \ | |
| --slave /usr/share/man/man1/clang-format.1.gz clang-format.1.gz /usr/share/man/man1/clang-format-6.0.1.gz \ | |
| --slave /usr/share/man/man1/clang-format-diff.1.gz clang-format-diff.1.gz /usr/share/man/man1/clang-format-diff-6.0.1.gz |
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
| using Cake.Core; | |
| using Cake.Core.Polyfill; | |
| using Cake.Core.IO.Arguments; | |
| public class Protobuild | |
| { | |
| private static readonly string protobuildUrl = "https://github.com/hach-que/Protobuild/raw/master/Protobuild.exe"; | |
| private static readonly FilePath protobuild = new FilePath("Protobuild.exe"); |