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
function bjorklund3(steps, pulses) | |
local pattern = {} | |
local counts = {} | |
local remainders = {} | |
local divisor = steps - pulses | |
table.insert(remainders, pulses) | |
local level = 1 | |
local run = true | |
while run do | |
table.insert(counts, divisor / remainders[level]) |
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
import sys | |
import subprocess | |
input_file = sys.argv[1] | |
seconds = sys.argv[2] | |
num_pieces = sys.argv[3] | |
for i in range(num_pieces): | |
num = i * seconds | |
output = "output/{0}.wav".format(i) |
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
import matplotlib.pyplot as plt | |
import numpy as np | |
import scipy | |
import scipy.fftpack | |
import scipy.io.wavfile | |
import heapq | |
from datetime import datetime | |
# from itertools import izip | |
Fs, y = scipy.io.wavfile.read("sine.wav") |
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
import os | |
import re | |
import subprocess | |
import ycm_core | |
def LoadSystemIncludes(): | |
regex = re.compile(ur'(?:\#include \<...\> search starts here\:)(?P<list>.*?)(?:End of search list)', re.DOTALL); | |
process = subprocess.Popen(['clang', '-v', '-E', '-x', 'c++', '-'], stdin=subprocess.PIPE, stdout=subprocess.PIPE, stderr=subprocess.PIPE); | |
process_out, process_err = process.communicate(''); | |
output = process_out + process_err; |
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 <string> | |
/* this is a test: åøæ */ | |
namespace { | |
int føø(const std::string& x) { | |
} |
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
;;; flycheck-luacheck.el --- Flycheck syntax checker using luacheck -*- lexical-binding: t; -*- | |
;; Copyright (C) 2015 Peter Vasil | |
;; Author: Peter Vasil <[email protected]> | |
;; 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
// | |
// includes | |
// | |
#import <SystemConfiguration/SystemConfiguration.h> | |
#import <CoreFoundation/CoreFoundation.h> | |
#import <arpa/inet.h> | |
#import <string> | |
// | |
// desc: convert IPv4 address from binary format to numbers-and-dots notation in a string |
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
;; Cyberpunk Colour Theme | |
;; | |
;; "and he'd still see the matrix in his sleep, bright lattices of logic | |
;; unfolding across that colorless void..." | |
;; William Gibson, Neuromancer. | |
;; | |
(require 'color-theme) | |
;;;###autoload |
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
require "formula" | |
class Emacs < Formula | |
homepage "https://www.gnu.org/software/emacs/" | |
stable do | |
url "http://ftpmirror.gnu.org/emacs/emacs-24.4.tar.xz" | |
mirror "https://ftp.gnu.org/pub/gnu/emacs/emacs-24.4.tar.xz" | |
sha256 "47e391170db4ca0a3c724530c7050655f6d573a711956b4cd84693c194a9d4fd" |
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
diff --git a/lisp/progmodes/gud.el b/lisp/progmodes/gud.el | |
index 42c5b20..0f6f412 100644 | |
--- a/lisp/progmodes/gud.el | |
+++ b/lisp/progmodes/gud.el | |
@@ -35,7 +35,7 @@ | |
;; kluge with the gud-xdb-directories hack producing gud-dbx-directories. | |
;; Derek L. Davies <[email protected]> added support for jdb (Java | |
;; debugger.) Jan Nieuwenhuizen added support for the Guile REPL (Guile | |
-;; debugger). | |
+;; debugger). llvm.org added support for lldb. |