Skip to content

Instantly share code, notes, and snippets.

@compcon
compcon / pilot.txt
Created Oct 8, 2020
Sledgehammer - Mariken Mikeska (LL:6)
View pilot.txt
{"id":"f219ef0b-1776-449e-8b5f-089eef4ba28d","campaign":"","group":"","sort_index":0,"cloudID":"","cloudOwnerID":"21da739c-4706-4753-8500-bab4b71ee638","lastCloudUpdate":"","level":6,"callsign":"Sledgehammer","name":"Mariken Mikeska","player_name":"","status":"Active","mounted":false,"text_appearance":"","notes":"","history":"","portrait":"","cloud_portrait":"","quirk":"","current_hp":6,"reserves":[],"orgs":[],"background":"","mechSkills":[2,2,0,4],"licenses":[{"id":"mf_caliban","rank":3},{"id":"mf_iskander","rank":3}],"skills":[{"id":"sk_apply_fists_to_faces","rank":1},{"id":"sk_assault","rank":1},{"id":"sk_blow_something_up","rank":1},{"id":"sk_survive","rank":1}],"talents":[{"id":"t_vanguard","rank":3},{"id":"t_engineer","rank":3},{"id":"t_combined_arms","rank":3}],"core_bonuses":["cb_reinforced_frame","cb_auto_stabilizing_hardpoints"],"loadout":{"id":"26359378-1db6-4a09-a48c-f532642d6da9","name":"Primary","armor":[null],"weapons":[null,null],"gear":[null,null,null],"extendedWeapons":[null],"extendedGear":
View hello_world.py
class HelloWorld:
def __init__(self, name):
self.name = name.capitalize()
def sayHi(self):
print "Hello " + self.name + "!"
hello = HelloWorld("world")
hello.sayHi()
View hello_world.py
class HelloWorld:
def __init__(self, name):
self.name = name.capitalize()
def sayHi(self):
print "Hello " + self.name + "!"
hello = HelloWorld("world")
hello.sayHi()
View stopwatch.rs
use std::time::{Duration, Instant};
use cursive::traits::{Nameable, Resizable};
use cursive::views::{Button, Canvas, Dialog, LinearLayout};
fn main() {
let mut siv = cursive::default();
siv.add_layer(
Dialog::new()
View CleanEmptyFoldersEditorExtension.cs
using System.IO;
using System.Linq;
using UnityEditor;
using UnityEngine;
public class CleanEmptyFoldersEditorExtension : EditorWindow
{
private static string deletedFolders;
[MenuItem("Tools/Clean Empty Folders")]
@compcon
compcon / pilot.txt
Last active Oct 8, 2020
Khepri - support (LL:6)
View pilot.txt
{"id":"c49dce8b-fd7c-410a-b9b0-8b1dcef2358d","campaign":"","group":"","sort_index":0,"cloudID":"d57f29b8e4bc040567b81d033af40be9","cloudOwnerID":"5f57a1a3-eec5-419a-b515-30fba6e0a31b","lastCloudUpdate":"Thu Oct 08 2020 19:39:36 GMT-0400 (Eastern Daylight Time)","level":6,"callsign":"Khepri","name":"support","player_name":"","status":"Active","mounted":false,"text_appearance":"","notes":"","history":"","portrait":"","cloud_portrait":"","quirk":"","current_hp":6,"reserves":[],"orgs":[],"background":"","mechSkills":[4,0,0,4],"licenses":[{"id":"mf_lancaster","rank":3},{"id":"mf_sherman","rank":3}],"skills":[{"id":"sk_apply_fists_to_faces","rank":1},{"id":"sk_assault","rank":1},{"id":"sk_blow_something_up","rank":1},{"id":"sk_survive","rank":1}],"talents":[{"id":"t_leader","rank":3},{"id":"t_spotter","rank":3},{"id":"t_skirmisher","rank":3}],"core_bonuses":["cb_integrated_ammo_feeds","cb_reinforced_frame"],"loadout":{"id":"5e012c12-6755-48b9-a2dd-05b70986c821","name":"Primary","armor":[null],"weapons":[null,null],
@anfeldma-ms
anfeldma-ms / SpringDataAzureCosmosDBPOM2.xml
Created Oct 8, 2020
Spring Data Azure Cosmos DB pom.xml public gist
View SpringDataAzureCosmosDBPOM2.xml
<dependency>
<groupId>com.azure</groupId>
<artifactId>azure-spring-data-cosmos</artifactId>
<version>3.0.0</version>
</dependency>
@choco-bot
choco-bot / Install.txt
Created Oct 8, 2020
TortoiseGit.latest v1.7.15 - Failed - Package Tests Results
View Install.txt
2020-08-28 15:40:50,760 2260 [DEBUG] - XmlConfiguration is now operational
2020-08-28 15:40:50,994 2260 [INFO ] - ============================================================
2020-08-28 15:40:51,775 2260 [INFO ] - Chocolatey v0.10.16-beta
2020-08-28 15:40:51,822 2260 [DEBUG] - Chocolatey is running on Windows v 6.3.9600.0
2020-08-28 15:40:51,853 2260 [DEBUG] - Attempting to delete file "C:/ProgramData/chocolatey/choco.exe.old".
2020-08-28 15:40:51,853 2260 [DEBUG] - Attempting to delete file "C:\ProgramData\chocolatey\choco.exe.old".
2020-08-28 15:40:51,994 2260 [DEBUG] - Command line: "C:\ProgramData\chocolatey\choco.exe" install TortoiseGit.latest --version 1.7.15 -fdvy --execution-timeout=5400 --allow-downgrade
2020-08-28 15:40:52,010 2260 [DEBUG] - Received arguments: install TortoiseGit.latest --version 1.7.15 -fdvy --execution-timeout=5400 --allow-downgrade
2020-08-28 15:40:52,134 2260 [DEBUG] - RemovePendingPackagesTask is now ready and waiting for PreRunMessage.
2020-08-28 15:40:52,167 2260 [DEBUG] -
@Ch-sriram
Ch-sriram / trailing-zeroes-factorial-efficient.cpp
Created Oct 8, 2020
Trailing Zeroes in Factorial [TC: O(log5(N)); SC:O(1)]
View trailing-zeroes-factorial-efficient.cpp
// Problem Link: https://practice.geeksforgeeks.org/problems/trailing-zeroes-in-factorial/0
#include <iostream>
using namespace std;
#define ull uint64_t
int countTrailingZeroes(const int n) {
int trailingZeroes = 0;
for(int i = 5; i <= n; i *= 5)
@bradsimantel
bradsimantel / common-email-providers.txt
Created Oct 8, 2020 — forked from adamloving/common-email-providers.txt
Sampling of popular email service providers. These were the most frequent from my list that I was able to eyeball. From an experiment to figure out what percentage of email addresses on an email list use an ISP for email as opposed to a corporate, educational, or military email address.
View common-email-providers.txt
gmail.com
yahoo.com
hotmail.com
aol.com
columbus.rr.com
sbcglobal.net
comcast.net
msn.com
insight.rr.com
earthlink.net
You can’t perform that action at this time.