Skip to content

Instantly share code, notes, and snippets.

View CraigglesO's full-sized avatar
🌎
Sic Parvis Magna

地図の神様 CraigglesO

🌎
Sic Parvis Magna
View GitHub Profile
@CraigglesO
CraigglesO / StopW10.bat
Created March 13, 2016 12:53 — forked from vip3rc0de/StopW10.bat
This Bat will stop windows 10 spying you, also it will Uninstall OneDrive....So you will keep your privacy! This bat will Disable Data Logging Services, will Configure Windows Explorer, Uninstall OneDrive and edit Hosts to stop sending Telemetry Data to Microsoft!
@echo off
echo ***************************************************************
echo ***************************************************************
echo *** This Script will stop Windows 10 Spying you...YEYYYY!!! ***
echo ***************************************************************
echo *** We will Disable Data Logging Services ***
echo *** We will Configure Windows Explorer ***
echo *** We will Uninstall OneDrive ***
echo *** We will edit Hosts to stop sending Data to Microsoft ***
echo ***************************************************************
@CraigglesO
CraigglesO / cppTemplate.cpp
Last active May 23, 2016 06:28
C++ Competitive Programming Template
#include <bits/stdc++.h>
using namespace std;
#define me(a, b) memset(a, (b), sizeof(a))
#define FOR(i,a,b) for (int i=a;i<b;i++)
#define RFOR(i,a,b) for(int i=a;i>b;i--)
#define for_all(it,n) for(__typeof((n).begin()) it=(n).begin();it!=(n).end();it++)
#define ITi std::vector<int>::iterator it
#define Size(n) (int)((n).size())
@CraigglesO
CraigglesO / sieveOfEratosthenes.rs
Created February 19, 2017 06:11
Sieve of Eratosthenes
use std::io;
use std::num;
fn main () {
// ... use stuff from num library
let mut input = String::new();
let mut a: Vec<bool> = Vec::new();
let mut n: i64 = 0;
println!("Please enter a number");
match io::stdin().read_line(&mut input) {
// A C++ program for Bellman-Ford's single source
// shortest path algorithm.
// nvcc -std=c++11 BellmanFord.cu -D_MWAITXINTRIN_H_INCLUDED -D__STRICT_ANSI__
#include <stdio.h>
#include <climits>
#include <random>
#include <chrono>
#include <ctime>
using namespace std;
@CraigglesO
CraigglesO / find-differences.js
Created July 9, 2018 18:25
Find the differences between images and labels
const fs = require('fs');
const IMAGES = {};
const LABELS = {};
console.log("HERE WE GO");
let folders = fs.readdirSync('./dataset/training/images/19');
// grab all pertaining folders ingoring DS_Store
folders.forEach(folder => {
const SerialPort = require('serialport');
const { asciiToTrytes } = require('@iota/converter')
const Mam = require('@iota/mam');
const port = new SerialPort('/dev/tty.usbserial-210352A82EDB1', {
baudRate: 115200
});
port.on('open', () => {
console.log('port is open!');
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@CraigglesO
CraigglesO / solarData.geojson
Created October 20, 2021 13:06
Scraped from a solar project list
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@CraigglesO
CraigglesO / streets.json
Created November 4, 2021 00:13
Streets style
{
"version": 2,
"name": "s2maps-streets",
"center": [-122.4585607773497, 37.778443127730476],
"zoom": 0,
"minzoom": -1,
"maxzoom": 18.99,
"sources": {
"streets": "s2maps://data/s2maps/streets-v3.s2tiles",
"terrain": "s2maps://data/s2maps/terrain-v1.s2tiles"