Skip to content

Instantly share code, notes, and snippets.

@xndc
xndc / CMakeLists.txt
Last active April 2, 2019 12:05
VS Code IntelliSense slowdown
cmake_minimum_required(VERSION 3.12)
project(Demo)
# GLFW:
set(GLFW_BUILD_DOCS OFF CACHE BOOL "" FORCE)
set(GLFW_BUILD_TESTS OFF CACHE BOOL "" FORCE)
set(GLFW_BUILD_EXAMPLES OFF CACHE BOOL "" FORCE)
add_subdirectory(glfw)
# dear imgui:
1>------ Build started: Project: Chakra.JITIDL, Configuration: Release Win32 ------
2>------ Build started: Project: CoreManifests, Configuration: Release Win32 ------
3>------ Build started: Project: Chakra.Common.Codex, Configuration: Release Win32 ------
4>------ Build started: Project: Chakra.Common.Util, Configuration: Release Win32 ------
2> Performing Custom Build Tools
2>mc : error : 0x3 trying to open file <Copy\Build\VcBuild\obj\x86_release\CoreManifests\>.
1> Processing C:\ChakraCore - Copy\lib\JITIDL\ChakraJIT.idl
1> ChakraJIT.idl
5>------ Build started: Project: Chakra.Common.Core, Configuration: Release Win32 ------
1> Processing C:\Program Files (x86)\Windows Kits\8.1\Include\shared\wtypes.idl
C:\ChakraCore 2>msbuild /m /p:Platform=x86 /p:Configuration=Release Build\Chakra.Core.sln
Microsoft (R) Build Engine version 14.0.25420.1
Copyright (C) Microsoft Corporation. All rights reserved.
Build started 31/01/2017 10:06:13.
1>Project "C:\ChakraCore 2\Build\Chakra.Core.sln" on node 1 (default targets).
1>ValidateSolutionConfiguration:
Building solution configuration "Release|x86".
ValidateProjects:
The project "pal" is not selected for building in solution configuration "Release|x86".
@xndc
xndc / gist.m
Created January 22, 2016 21:26
Mathematica implementation of a primitive (and wrong) algorithm for computing the first ionization energy of a given atom
eclist[z_] := ElementData[z, "ElectronConfigurationString"][[1]] /.
Superscript[a_, b_] -> {a, b}
orbitals[z_] := Partition[Flatten[If[StringQ[eclist[z][[1]]],
Join[
orbitals[StringReplace[eclist[z][[1]], ("[" ~~ base__ ~~ "]") -> base]],
Drop[eclist[z], 1]],
eclist[z]]], 3]
lastOrbital[z_] := Last[orbitals[z]]
@xndc
xndc / tunejack.sh
Last active November 4, 2024 17:50
Instant radio streaming script using the TuneIn API
#!/bin/bash
# tunejack.sh uses the TuneIn public API (at opml.radiotime.com) to search for
# a radio station, print out its details and try to play it somehow.
if [ "$#" -eq 0 ]; then
echo "$0: search for a radio station using the TuneIn API"
echo "Usage: $0 PATTERN"
exit 1
fi