Skip to content

Instantly share code, notes, and snippets.

View carlomontec's full-sized avatar

Carlo Monjaraz carlomontec

  • Stuttgart, Germany
View GitHub Profile
@Alanaktion
Alanaktion / Celeste Dark.sublime-color-scheme
Last active February 16, 2024 03:27
Celeste Dark Sublime Text Theme
{
// Rough modified version of Celeste to darken it up
"name": "Celeste Dark",
"author": "Sublime HQ Pty Ltd",
"variables":
{
// These colors are part of the hashed range
// and should only be used in non-source
"purple": "hsla(260, 50%, 70%, 1)",
"blue": "hsla(200, 70%, 55%, 1)",
@dataPulverizer
dataPulverizer / RegularExpressionsInJulia.jl
Created February 17, 2018 02:53
Regular Expressions In Julia
#=
Notes on Regular expressions in Julia:
Sources:
Regular Expressions Cookbook, Jan Goyvaerts & Steven Levithan.
https://www.regular-expressions.info/wordboundaries.html
https://www.regular-expressions.info/lookaround.html
http://www.rexegg.com/regex-disambiguation.html
Julialang Gitter Chat.
=#
@WhiteAbeLincoln
WhiteAbeLincoln / taskview.ahk
Created August 10, 2016 01:19
Autohotkey hotcorners script to activate task view
#Persistent
; The following script can define hotcorners for any number of monitors arranged in any configuration.
; Horizontally arranged monitors work best
; Vertically arranged monitors may have some difficulty (read: over sensitivity since moving your mouse too far up puts it into Bottom*, not Top*), but should still work
; ---------------------------------------
; USER CONFIGURABLE
; ---------------------------------------
@ingramchen
ingramchen / gist:e2af352bf8b40bb88890fba4f47eccd0
Created April 5, 2016 12:58
ffmpeg convert gif to mp4, for best cross browser compatibility
### Full command line options
```
ffmpeg -f gif -i FOO.gif -pix_fmt yuv420p -c:v libx264 -movflags +faststart -filter:v crop='floor(in_w/2)*2:floor(in_h/2)*2' BAR.mp4
```
### Notie
* output mp4 is encoded with h264, support Firefox/Chrome/Safari in Windows, Mac OSX, Android, and iOS.
@MikeInnes
MikeInnes / startup.jl
Last active February 5, 2023 12:54
Some useful macros for Julia
# Repeat an operation n times, e.g.
# @dotimes 100 println("hi")
macro dotimes(n, body)
quote
for i = 1:$(esc(n))
$(esc(body))
end
end
end
@timholy
timholy / fft_wisdom.jl
Last active February 16, 2019 02:25
Comparison of Matlab and Julia FFT performance
FFTW.set_num_threads(4)
# Warm up fft
x = randn(10)
y = fft(x)
# Also do a prime, power of two, just in case
x = randn(13)
y = fft(x)
x = randn(16)
y = fft(x)