This gist details the following:
- Converting a Subversion (SVN) repository into a Git repository
- Purging the resultant Git repository of large files
- Retrieve a list of SVN commit usernames
import React, { useState } from 'react'; | |
import { withStyles } from '@material-ui/core/styles'; | |
import TextField from '@material-ui/core/TextField'; | |
import Button from '@material-ui/core/Button'; | |
import Dialog from '@material-ui/core/Dialog'; | |
import DialogActions from '@material-ui/core/DialogActions'; | |
import DialogContent from '@material-ui/core/DialogContent'; | |
import DialogContentText from '@material-ui/core/DialogContentText'; | |
import DialogTitle from '@material-ui/core/DialogTitle'; | |
import axios from 'axios'; |
#!/usr/bin/env python | |
import os, subprocess, json | |
# Get all bookmarks matching the given name(s) | |
def get_bookmarks(profile_dir, names): | |
with open(os.path.join(profile_dir, 'Bookmarks')) as f: | |
j = json.load(f) | |
results = [] | |
# There are two root-level bookmark folders: one for the bookmark bar and one for all others. |
{ | |
// See https://go.microsoft.com/fwlink/?LinkId=733558 | |
// for the documentation about the tasks.json format | |
"version": "2.0.0", | |
"tasks": [{ | |
"taskName": "Run Python", | |
"group": { | |
"kind": "build", | |
"isDefault": true | |
}, |
## | |
# Add uninstall target | |
# Requirements: Copy the uninstall.cmake file to the appropriate CMAKE_MODULE_PATH. | |
# | |
add_custom_target(uninstall | |
"${CMAKE_COMMAND}" -P "${CMAKE_MODULE_PATH}/uninstall.cmake" | |
) |
//usr/bin/make -s "${0%.*}" CFLAGS="-O2 -Wall -Werror" && ./"${0%.*}" "$@"; s=$?; rm ./"${0%.*}"; exit $s | |
#include <stdio.h> | |
#include <stdbool.h> | |
enum option_tag { OPTION_SOME, OPTION_NONE }; | |
#define option_type(T) { enum option_tag tag; T some; } | |
#define SOME(S) { .tag = OPTION_SOME, .some = S } | |
#define NONE() { .tag = OPTION_NONE } |
require 'set' | |
require 'json' | |
require 'tree' | |
require 'fileutils' | |
# convert C globals to structures using clang ast json dump | |
# algorithm description | |
# - get AST with clang | |
# - convert AST into ruby tree |
This gist details the following:
Scan for access points (run multiple times for more complete scan):
# connmanctl scan wifi
Scan completed for wifi
set(PRJ_NAME CLion_STM_LED) | |
set(MCU_FAMILY STM32F1xx) | |
set(MCU_LINE STM32F103xB) | |
set(MCU_LINKER_SCRIPT STM32F103RBTx_FLASH.ld) | |
cmake_minimum_required(VERSION 3.6) | |
project(${PRJ_NAME} C ASM) | |
add_definitions(-D${MCU_LINE}) |
// [src] https://github.com/ocornut/imgui/issues/123 | |
// [src] https://github.com/ocornut/imgui/issues/55 | |
// v1.22 - flip button; cosmetic fixes | |
// v1.21 - oops :) | |
// v1.20 - add iq's interpolation code | |
// v1.10 - easing and colors | |
// v1.00 - jari komppa's original | |
#pragma once |