Skip to content

Instantly share code, notes, and snippets.

View zacps's full-sized avatar

Zac Pullar-Strecker zacps

View GitHub Profile
{
"discord": {
"token": "$TOKEN$",
"allowLinking": true,
"ignoresBots": true,
"ignoresUsers": [],
"channels": {
"generic": {
"commandPrefix": "!",
"messages": {
This file has been truncated, but you can view the full file.
# 1 "__bindgen.cpp"
# 1 "<built-in>" 1
# 1 "<built-in>" 3
# 352 "<built-in>" 3
# 1 "<command line>" 1
# 1 "<built-in>" 2
# 1 "__bindgen.cpp" 2
# 1 "./src/include/winpty.h" 1
/*
* Copyright (c) 2011-2016 Ryan Prichard
import string
def get_int(prompt, minimum, maximum):
val = input(prompt)
try:
val = int(val)
except ValueError:
print("Please enter an int between {} and {}".format(minimum, maximum))
return None
else:
@zacps
zacps / init.vim
Last active March 14, 2018 03:52
" ╔═╗╦ ╦╔═╗╦╔╦╗╔═╗
" ╠═╣║ ║║ ╦║ ║ ║╣
" ╩ ╩╚═╝╚═╝╩ ╩ ╚═╝
" An overloaded neovim config
" Setup {{{
" Set directory for all vim files
let $vimdir = $HOME.(has('win32') ? '\vimfiles\' : '/.config/nvim/')
require('./check-versions')()
process.env.NODE_ENV = 'production'
var ora = require('ora')
var rm = require('rimraf')
var path = require('path')
var chalk = require('chalk')
var webpack = require('webpack')
var config = require('../config')
@zacps
zacps / lemonbuddy.log
Created May 21, 2016 07:59
Cmake error of build on lemonbuddy
CMake Warning at CMakeLists.txt:88 (message):
ccache not found. Ignoring the flag...
CMake Error at /usr/share/cmake-3.5/Modules/FindBoost.cmake:1657 (message):
Unable to find the requested Boost libraries.
Unable to find the Boost header files. Please set BOOST_ROOT to the root
directory containing Boost or BOOST_INCLUDEDIR to the directory containing
Boost's headers.
package main
import (
"golang.org/x/tour/wc"
"strings"
)
func WordCount(s string) map[string]int {
fields := strings.Fields(s)
words := make(map[string]int)
@zacps
zacps / fizzbuzz.go
Last active May 10, 2022 22:54
Fizzbuzz in golang using a switch statement
package main
import "fmt"
func fizzbuzz(max int) {
for i := 1; i < max; i++ {
switch {
case (i%3 == 0) && (i%5 == 0):
+ fmt.Println("FizzBuzz")
case i%3 == 0: