Skip to content

Instantly share code, notes, and snippets.

@gengwg
gengwg / github_private_email.md
Created October 10, 2019 03:44
remote: error: GH007: Your push would publish a private email address.
Enumerating objects: 3, done.
Counting objects: 100% (3/3), done.
Delta compression using up to 4 threads
Compressing objects: 100% (2/2), done.
Writing objects: 100% (3/3), 681 bytes | 681.00 KiB/s, done.
Total 3 (delta 0), reused 0 (delta 0)
remote: error: GH007: Your push would publish a private email address.
remote: You can make your email public or disable this protection by visiting:
remote: http://github.com/settings/emails
@theol0403
theol0403 / Graph.cpp
Last active June 14, 2019 03:12
LVGL Builder Example
#include "Graph.hpp"
Graph::Graph(lv_obj_t* parent) : Graph(parent, lv_obj_get_style(parent)->body.main_color) {}
Graph::Graph(lv_obj_t* parent, lv_color_t mainColor) :
graph(lv_chart_create(parent, NULL))
{
lv_obj_set_size(graph, lv_obj_get_width(parent), lv_obj_get_height(parent));
lv_obj_align(graph, NULL, LV_ALIGN_CENTER, 0, 0);
lv_chart_set_type(graph, LV_CHART_TYPE_LINE);
@acetousk
acetousk / API.h
Last active January 27, 2019 22:10
72832S Potatehoes Directory
//
// Created by jonesdav004 on 1/23/2019
//
#ifndef POTATOES_API_H
#define POTATOES_API_H
#endif //POTATOES_API_H
/** @file APIh
@Jerrylum
Jerrylum / initialize.cpp
Last active June 12, 2019 19:52
PROS, auton selector with LLEMU
//
// Copyright (c) 2018 by CMASS Robotics team. All Rights Reserved.
//
#include "main.h"
#include <string>
#include <cstdarg>
#include <memory>
short _auto_selected_id = 1;
@milanboers
milanboers / clone.bash
Last active May 2, 2024 20:03
Clone all repositories of a Github user
curl -s https://api.github.com/users/milanboers/repos | grep \"clone_url\" | awk '{print $2}' | sed -e 's/"//g' -e 's/,//g' | xargs -n1 git clone