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
| /******************************************************* | |
| * Copyright (c) 2017, ArrayFire | |
| * All rights reserved. | |
| * | |
| * This file is distributed under 3-clause BSD license. | |
| * The complete license agreement can be obtained at: | |
| * http://arrayfire.com/licenses/BSD-3-Clause | |
| ********************************************************/ | |
| #include <arrayfire.h> |
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
| static GAMMA: f64 = 0.80; | |
| static INTENSITY_MAX: f64 = 255.0; | |
| static MAX_WVL: f64 = 780.0; | |
| static MIN_WVL: f64 = 380.0; | |
| /** Taken from Earl F. Glynn's web page: | |
| * <a href="http://www.efg2.com/Lab/ScienceAndEngineering/Spectra.htm">Spectra Lab Report</a> | |
| * */ | |
| pub fn wavelength_to_rgb(wavelength: f64) -> (u32, u32, u32) { |
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 <algorithm> | |
| #include <iostream> | |
| #include <string> | |
| #ifdef _WIN32 | |
| #include <limits.h> | |
| #include <intrin.h> | |
| typedef unsigned __int32 uint32_t; | |
| #else | |
| #include <stdint.h> |
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
| #!/bin/sh | |
| # i3-get-window-criteria - Get criteria for use with i3 config commands | |
| # To use, run this script, then click on a window. | |
| # Output is in the format: [<name>=<value> <name>=<value> ...] | |
| # Known problem: when WM_NAME is used as fallback for the 'title="<string>"' criterion, | |
| # quotes in "<string>" are not escaped properly. This is a problem with the output of `xprop`, | |
| # reported upstream: https://bugs.freedesktop.org/show_bug.cgi?id=66807 |
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
| # i3status configuration file. | |
| # see "man i3status" for documentation. | |
| # It is important that this file is edited as UTF-8. | |
| # The following line should contain a sharp s: | |
| # ß | |
| # If the above line is not correctly displayed, fix your editor first! | |
| general { | |
| colors = true |
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
| # This file has been auto-generated by i3-config-wizard(1). | |
| # It will not be overwritten, so edit it as you like. | |
| # | |
| # Should you change your keyboard layout somewhen, delete | |
| # this file and re-run i3-config-wizard(1). | |
| # | |
| # i3 config file (v4) | |
| # | |
| # Please see http://i3wm.org/docs/userguide.html for a complete reference! |
NewerOlder