Skip to content

Instantly share code, notes, and snippets.

:atom:
70% Julia, 30% WoW Classic

Gnimuc Gnimuc

:atom:
70% Julia, 30% WoW Classic
Block or report user

Report or block Gnimuc

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View wrap_sundials.jl
# This script is not an active part of the package.
# It uses Clang.jl package to parse Sundials C headers and generate
# Julia wrapper for Sundials API.
#
# To run the script from Julia console:
# include(joinpath(Pkg.dir("Sundials"), "src", "wrap_sundials.jl"));
using Clang
# `outpath` specifies, where the julian wrappers would be generated.
View makie_imgui.md
using CImGui
using CImGui.GLFWBackend
using CImGui.OpenGLBackend
using CImGui.GLFWBackend.GLFW
using CImGui.OpenGLBackend.ModernGL
using AbstractPlotting
using GLMakie
import GLMakie: make_context_current, render_frame, to_native, Screen
View Makefile
# Hello, and welcome to makefile basics.
#
# You will learn why `make` is so great, and why, despite its "weird" syntax,
# it is actually a highly expressive, efficient, and powerful way to build
# programs.
#
# Once you're done here, go to
# http://www.gnu.org/software/make/manual/make.html
# to learn SOOOO much more.
View julia-cameras-logo.jl
using Luxor
using IterTools
N = 8
scale = 0.6N
Drawing(400, 400, "julia-cameras-logos.png")
origin()
juliacircles()
dots = ngon(O, 100, 3, pi/6, vertices=true)
View multicontext.jl
using CImGui
using CImGui.LibCImGui
using CImGui.GLFWBackend
using CImGui.OpenGLBackend
using GLFW, ModernGL
using CSyntax
using Printf
@static if Sys.isapple()
# OpenGL 3.2 + GLSL 150
@Gnimuc
Gnimuc / imgui_node_graph_test.cpp
Created Mar 1, 2019 — forked from ocornut/imgui_node_graph_test.cpp
Node graph editor basic demo for ImGui
View imgui_node_graph_test.cpp
// Creating a node graph editor for ImGui
// Quick demo, not production code! This is more of a demo of how to use ImGui to create custom stuff.
// Better version by @daniel_collin here https://gist.github.com/emoon/b8ff4b4ce4f1b43e79f2
// See https://github.com/ocornut/imgui/issues/306
// v0.03: fixed grid offset issue, inverted sign of 'scrolling'
// Animated gif: https://cloud.githubusercontent.com/assets/8225057/9472357/c0263c04-4b4c-11e5-9fdf-2cd4f33f6582.gif
#include <math.h> // fmodf
// NB: You can use math functions/operators on ImVec2 if you #define IMGUI_DEFINE_MATH_OPERATORS and #include "imgui_internal.h"
@Gnimuc
Gnimuc / Nuklear_and_CImGui.jl
Created Feb 28, 2019
Nuklear works along side with CImGui
View Nuklear_and_CImGui.jl
using Nuklear
using Nuklear.LibNuklear
using Nuklear.GLFWBackend
using CImGui
using CImGui.CSyntax
using CImGui.GLFWBackend
using CImGui.OpenGLBackend
using CImGui.GLFWBackend.GLFW
using CImGui.OpenGLBackend.ModernGL
View nested-struct
julia> :(struct Foo
struct Bar
struct Baz
x
end
struct Goo
y
end
baz::Baz
goo::Goo
View phong.frag
#version 410
in vec3 geo_position_eye, normal_eye;
uniform mat4 view_mat;
// fixed point light properties
vec3 light_position_world = vec3(0.0, 0.0, 5.0);
vec3 Ls = vec3(1.0, 1.0, 1.0); // white specular colour
vec3 Ld = vec3(0.7, 0.7, 0.7); // dull white diffuse light colour
View LLVMBuilder.md

master

with this patch

-LLVM_@LLVM_VERSION_MAJOR@.@LLVM_VERSION_MINOR@ { global: *; };
+JLBB_LLVM_@LLVM_VERSION_MAJOR@.@LLVM_VERSION_MINOR@ { global: *; };

and disabling WebAssembly

# Also target Wasm because Javascript is the Platform Of The Future (TM)
# CMAKE_FLAGS="${CMAKE_FLAGS} -DLLVM_EXPERIMENTAL_TARGETS_TO_BUILD:STRING=\"WebAssembly\""
You can’t perform that action at this time.