Skip to content

Instantly share code, notes, and snippets.

@kristofferh
kristofferh / git-aliases.txt
Created May 16, 2012 15:48
List all git aliases
List just aliases
$ git config --get-regexp alias
List all config parameters
$ git config --list
@jackinside
jackinside / TickTickProviderHelper
Last active October 9, 2023 14:56
A utility class to work with TickTick's Content Provider. A full guide is available at https://docs.google.com/document/d/1zo0JdIWnQWi-D0v7xikknEnsLj4RmrzOuqzScdR_tm8
/**
* This class provides the URI, const values and some methods to work with TickTick's Content Provider.
*
* A guide is available on https://docs.google.com/document/d/1zo0JdIWnQWi-D0v7xikknEnsLj4RmrzOuqzScdR_tm8
*/
public class TickTickProviderHelper {
private static final Uri TASK_URI = Uri.parse("content://com.ticktick.task.data/tasks");
private static final Uri PROJECT_URI = Uri.parse("content://com.ticktick.task.data/tasklist");
private static final String TASK_CONTENT_ITEM_TYPE = "vnd.android.cursor.item/ticktick.task.task";
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@BeMg
BeMg / aca_ch2_cs2.c
Created April 14, 2018 11:02
computer architecture a quantitative approach source code 2.29 run in the linux by change get_seconds function
#include <stdio.h>
#include <time.h>
#define ARRAY_MIN (1024) /* 1/4 smallest cache */
#define ARRAY_MAX (4096*4096) /* 1/4 largest cache */
int x[ARRAY_MAX]; /* array going to stride through */
// double get_seconds() { /* routine to read time in seconds */
// __time64_t ltime;
// _time64( &ltime );