Skip to content

Instantly share code, notes, and snippets.

View jacobwilliams's full-sized avatar

Jacob Williams jacobwilliams

View GitHub Profile
@albertziegenhagel
albertziegenhagel / intel-vscode-fort-deb-adapter.md
Created June 21, 2023 08:45
How-To: Enable Intel Fortran Debugging Support in VS Code

How-To: Enable Intel Fortran Debugging Support in VS Code

Introduction and Problem

Since there is no real debug adapter for Fortran in VS Code, the debug adapter for C/C++ is used which can be obtained via the C/C++ extension for VS Code.

When debugging on Linux or in general when using gdb or lldb for debugging, this is done via the MIEngine and the cppdbg debug adapter and should not impose any problems.

@tekin
tekin / .gitattributes
Last active July 2, 2025 17:00
An example .gitattributes file that will configure custom hunk header patterns for some common languages and file formats. See https://tekin.co.uk/2020/10/better-git-diff-output-for-ruby-python-elixir-and-more for more details.
# Stick this in your home directory and point your Global Git config at it by running:
#
# $ git config --global core.attributesfile ~/.gitattributes
#
# See https://tekin.co.uk/2020/10/better-git-diff-output-for-ruby-python-elixir-and-more for more details
*.c diff=cpp
*.h diff=cpp
*.c++ diff=cpp
*.h++ diff=cpp
@centaurialpha
centaurialpha / qt_icons.py
Last active November 23, 2025 04:23
Show all standard Qt icons
from PyQt5.QtWidgets import QApplication
from PyQt5.QtWidgets import QWidget
from PyQt5.QtWidgets import QPushButton
from PyQt5.QtWidgets import QGridLayout
from PyQt5.QtWidgets import QStyle
COL_SIZE = 4
class Widget(QWidget):
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@jshahbazi
jshahbazi / djb_hash.f90
Last active April 3, 2020 19:27
Daniel J. Bernstein's hash algorithm written in Fortran
integer function djb_hash(str) result(hash)
implicit none
character(len=*),intent(in) :: str
integer :: hash
integer :: i
hash = 5381
do i=1,len(str)
@dergachev
dergachev / GIF-Screencast-OSX.md
Last active October 31, 2025 16:45
OS X Screencast to animated GIF

OS X Screencast to animated GIF

This gist shows how to create a GIF screencast using only free OS X tools: QuickTime, ffmpeg, and gifsicle.

Screencapture GIF

Instructions

To capture the video (filesize: 19MB), using the free "QuickTime Player" application:

@ramnathv
ramnathv / gh-pages.md
Created March 28, 2012 15:37
Creating a clean gh-pages branch

Creating a clean gh-pages branch

This is the sequence of steps to follow to create a root gh-pages branch. It is based on a question at [SO]

cd /path/to/repo-name
git symbolic-ref HEAD refs/heads/gh-pages
rm .git/index
git clean -fdx
echo "My GitHub Page" > index.html