Skip to content

Instantly share code, notes, and snippets.

View gaybro8777's full-sized avatar
💭
Im not gay. I'm just getting back at my dad for not getting me an xbox

Michael Corrado gaybro8777

💭
Im not gay. I'm just getting back at my dad for not getting me an xbox
View GitHub Profile
@louischatriot
louischatriot / bugreport.js
Last active February 13, 2022 12:03
Example of a good bug report for NeDB
// Put all your require statements at the top. Your gist should contain a package.json which lets me download all
// the dependencies needed to test your bug report with a simple 'npm install'
var async = require('async')
, someOtherModule = require('xxx')
, fs = require('fs');
// Then require nedb and chai. You need to use chai for your assertions
var Nedb = require('nedb')
, chai = require('chai')
, assert = chai.assert; // Chai supports assert and should style of assertion
@christiangalsterer
christiangalsterer / nvd_download.sh
Last active April 13, 2025 20:02
Script to download the National Vulnerability Database files from https://nvd.nist.gov
#!/bin/sh
# https://gist.github.com/christiangalsterer/5f55389b9c50c74c31b9
# Copyright 2015 Christian Galsterer
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
@tfgrahame
tfgrahame / Season Model
Last active October 17, 2022 00:14
Season Model
@prefix sport: <http://www.bbc.co.uk/ontologies/sport/> .
@prefix event: <http://purl.org/NET/c4dm/event.owl#> .
@prefix timelineowl: <http://purl.org/NET/c4dm/timeline.owl#> .
@prefix time: <http://www.w3.org/2006/time#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
<#premier-league> a sport:RecurringCompetition .
<#barclays-premier-league-2014> a sport:Competition ;
sport:recurringCompetition <#premier-league> ;
@christiangalsterer
christiangalsterer / README.md
Last active December 16, 2019 20:28
Atlassian Jira: Number of issues in a Jira Query Language (JQL) search

Description

A Dashing widget to display the number of issues returned by a Jira Query Language (JQL) search. The number of issues will be displayed using the Numbers widget. This widget is a generalized version of the Atlassian Jira: Number of issues in a Jira filter query widget, which shows the number of issues for saved Jira filter.

Dependencies

The following dependencies are required. Please add them to your dashing gemfile.

gem 'jira-ruby', :require => 'jira'
@christiangalsterer
christiangalsterer / README.md
Last active May 12, 2023 14:20
Dashing Jira Agile Sprint Remaining Widget
@kingofhawks
kingofhawks / pandas_max_column.py
Created February 26, 2014 08:47
pandas to get column max value
import pandas
import numpy as np
df = pandas.DataFrame(np.random.randn(5,3),columns=['A','B','C'])
df
df['A'].argmax()
df['A'].max()
@kingofhawks
kingofhawks / screen_phantomjs.js
Last active April 21, 2019 12:51
Use phantomjs to automatically do screenshot for web pages
var page = require('webpage').create();
page.viewportSize = { width: 500, height: 300 };
page.open('http://github.com/', function() {
//page.render('github.png');
page.render('github.pdf');//support PDF render also
phantom.exit();
});
@kingofhawks
kingofhawks / write_text_to_Image
Last active June 10, 2021 06:38
Add text to existing image with C# and merge with another image file
using System;
using System.Collections.Generic;
using System.Linq;
using System.IO;
using System.Text;
using System.Threading.Tasks;
using System.Drawing;
using System.Drawing.Imaging;
using System.Drawing.Drawing2D;
using System.Drawing.Text;
@jxe
jxe / Internet of Meaning.md
Created November 11, 2013 17:18
Internet of Meaning DRAFT spec

Editor, Joe Edelman

Abstract: New protocols and data exchange formats are presented to address issues in link recommendation and “feeds” relevant to users' social, location-based, and time-based situations. The aim is to create a broader, more inclusive, and more user-driven ecosystem around recommender systems and feeds. A new HTTP header ("X-Situation") is proposed, along with a cryptographic proof format ("application/relevance-claim+json") for content providers / activity providers to publish traffic and review data that establishes contextual relevance for use by recommenders. Political avenues for achieving adoption are discussed. One application regards an open web response to facebook newsfeed. (v0.3.3, parts still naive)

Intro, re: Keeping the Internet from Becoming Like TV

Empowering uses of the web—like Kickstarter and DIY.org—are growing fast, but television- and tabloid-like uses—YouTube, BuzzFeed—are growing even faster. Which will colonize mo

@colinmollenhour
colinmollenhour / imap_learn.sh
Created November 21, 2012 21:10
IMAP Learn
#!/bin/bash
#
# IMAP Learn
#
# Copyright 2012 Colin Mollenhour (http://colin.mollenhour.com)
#
###############################################################################
#
# This script allows you to use an imap account to train your spamassassin server.
# Example script: