Skip to content

Instantly share code, notes, and snippets.

View qPCR4vir's full-sized avatar
🎯
Focusing

Ariel Vina-Rodriguez qPCR4vir

🎯
Focusing
View GitHub Profile
@bishboria
bishboria / springer-free-maths-books.md
Last active February 27, 2026 02:50
Springer made a bunch of books available for free, these were the direct links
@FlorianWolters
FlorianWolters / CMakeLists.txt
Last active March 2, 2026 01:50
Add Boost C++ Libraries as a dependency with plain CMake
# Copyright (c) 2014-2023 Florian Wolters
# MIT License
cmake_minimum_required(VERSION 3.26.3)
project(
"hello_boost_with_cmake"
VERSION 2.0.0
LANGUAGES CXX)
@gitaarik
gitaarik / git_submodules.md
Last active February 23, 2026 13:13
Git Submodules basic explanation

Git Submodules - Basic Explanation

Why submodules?

In Git you can add a submodule to a repository. This is basically a sub-repository embedded in your main repository. This can be very useful. A couple of usecases of submodules:

  • Separate big codebases into multiple repositories.
@nobuti
nobuti / gist:3816985
Created October 2, 2012 07:11
MySQL tables for continent names, country names and their ISO codes
CREATE TABLE IF NOT EXISTS `continents` (
`code` CHAR(2) NOT NULL COMMENT 'Continent code',
`name` VARCHAR(255),
PRIMARY KEY (`code`)
) ENGINE=InnoDB;
INSERT INTO `continents` VALUES
('AF', 'Africa'),
('AS', 'Asia'),
('EU', 'Europe'),
@necolas
necolas / gist:2215692
Created March 27, 2012 13:12
Git submodules
# Workflow from https://github.com/necolas/dotfiles
# Add the new submodule
git submodule add git://example.com/remote/path/to/repo.git vim/bundle/one-submodule
# Initialize the submodule
git submodule init
# Clone the submodule
git submodule update
# Stage the changes
git add vim/bundle/one-submodule
@andris9
andris9 / git-cache-meta.sh
Created March 5, 2012 13:15
git-cache-meta
#!/bin/sh -e
#git-cache-meta -- simple file meta data caching and applying.
#Simpler than etckeeper, metastore, setgitperms, etc.
#from http://www.kerneltrap.org/mailarchive/git/2009/1/9/4654694
#modified by n1k
# - save all files metadata not only from other users
# - save numeric uid and gid
# 2012-03-05 - added filetime, andris9
@ticean
ticean / SVN_Git_Mirror.md
Created January 3, 2012 21:14
SVN Git Mirror

Create Git Mirror from SVN Repository

This guide will demonstrate how to mirror an SVN into a Git repo. You're the target audience if you're an SVN user, just getting started with Git and need to coax your project team over to Git.

The branching scenario has been simplified for clarity.

References

@rane-hs
rane-hs / nana_x64.patch
Created December 19, 2011 07:52
nana for x64 (for msvc10)
--- C:/cpplib/nana/source/gui/cursor.cpp.bkp Tue Dec 13 19:37:44 2011
+++ C:/cpplib/nana/source/gui/cursor.cpp Mon Dec 19 15:49:01 2011
@@ -60,8 +60,13 @@
{
#if defined(NANA_WINDOWS)
const nana::char_t *idstr = translate(id);
+#ifdef _WIN64
+ ::SetClassLongPtr(reinterpret_cast<HWND>(wd), GCLP_HCURSOR,
+ static_cast<unsigned long>(reinterpret_cast<size_t>(::LoadCursor(0, idstr))));
+#else
@jeffery
jeffery / GitRepoUpdateTimestamp.sh
Created July 30, 2011 13:04
Update Timestamp of files in Checked-out Git Repository
#!/bin/bash -e
####
# Helper script to update the Last modified timestamp of files in a Git SCM
# Projects working Copy
#
# When you clone a Git repository, it sets the timestamp of all the files to the
# time when you cloned the repository.
#
# This becomes a problem when you want the cloned repository, which is part of a
# Web application have a proper cacheing mechanism so that it can re-cache files