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
@gaybro8777
gaybro8777 / algo.py
Created February 19, 2021 01:22 — forked from howCodeORG/algo.py
howCode's Simple Genetic Algorithm in Python
import random
population = 200
generations = 0
mutation = 0.01
alphabet = "abcdefghijklmnopqrstuvwxyz! "
target = "subscribe to howcode!"
output = ""
data = []
@gaybro8777
gaybro8777 / podforceupdate.sh
Created November 30, 2020 02:20 — forked from mbinna/podforceupdate.sh
Clear CocoaPods cache, re-download and re-install all pods
#!/usr/bin/env bash
rm -rf "${HOME}/Library/Caches/CocoaPods"
rm -rf "`pwd`/Pods/"
pod update
@gaybro8777
gaybro8777 / Makefile
Created August 9, 2020 23:10 — forked from lindenb/Makefile
Forum: Programming language use distribution from recent programs / articles https://www.biostars.org/p/251002/#251056 pubmed language code
.PHONY:all
JVARKIT_HOME?=${HOME}/src/jvarkit-git/dist
all: graph.png
graph.png : biostar251002.tsv script.gnuplot
grep -v YEAR $< | awk -F ' ' '{printf("%s\t%s\n",$$4,$$2);}'| tr " " "_" | grep -v null |\
sed 's/$$/ 1/'| ${HOME}/src/cmd-utils/src/yxv2table -a sum -n 0 | sed 's/^#/YEAR/' > graph.tsv && \
gnuplot script.gnuplot
rm -f graph.tsv
// create a bookmark and use this code as the URL, you can now toggle the css on/off
// thanks+credit: https://dev.to/gajus/my-favorite-css-hack-32g3
javascript: (function() {
var domStyle = document.createElement("style");
domStyle.append(
'* { color:#0f0!important;outline:solid #f00 1px!important; background-color: rgba(255,0,0,.2) !important; }\
* * { background-color: rgba(0,255,0,.2) !important; }\
* * * { background-color: rgba(0,0,255,.2) !important; }\
* * * * { background-color: rgba(255,0,255,.2) !important; }\
* * * * * { background-color: rgba(0,255,255,.2) !important; }\
@gaybro8777
gaybro8777 / jsonlib_communities.sas
Created February 6, 2020 18:26 — forked from cjdinger/jsonlib_communities.sas
Example of using JSON libname engine
/****************************************/
/* Example of using JSON libname engine */
/* for discovery, then with a JSON map */
/* Copyright 2016 SAS Institute */
/* written by Chris Hemedinger */
/* http://blogs.sas.com/sasdummy */
/****************************************/
/* split URL for readability */
%let url1=http://communities.sas.com/kntur85557/restapi/vc/categories/id/bi/topics/recent;
@gaybro8777
gaybro8777 / README.md
Created December 16, 2019 20:28 — forked from christiangalsterer/README.md
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'
@gaybro8777
gaybro8777 / README.md
Created December 16, 2019 18:54 — forked from christiangalsterer/README.md
Dashing Jira Agile Sprint Remaining Widget
@gaybro8777
gaybro8777 / nvd_download.sh
Created December 16, 2019 18:51 — forked from christiangalsterer/nvd_download.sh
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
#
@gaybro8777
gaybro8777 / SAP_CLA
Created November 13, 2019 14:54 — forked from CLAassistant/SAP_CLA
SAP Individual Contributor License Agreement
### SAP Individual Contributor License Agreement
Thank you for your interest in contributing to open source software projects (“Projects”) made available by SAP SE or its affiliates (“SAP”). This Individual Contributor License Agreement (“Agreement”) sets out the terms governing any source code, object code, bug fixes, configuration changes, tools, specifications, documentation, data, materials, feedback, information or other works of authorship that you submit or have submitted, in any form and in any manner, to SAP in respect of any of the Projects (collectively “Contributions”). If you have any questions respecting this Agreement, please contact opensource@sap.com.
You agree that the following terms apply to all of your past, present and future Contributions. Except for the licenses granted in this Agreement, you retain all of your right, title and interest in and to your Contributions.
**Copyright License.** You hereby grant, and agree to grant, to SAP a non-exclusive, perpetual, irrevocable, worldwi
@gaybro8777
gaybro8777 / coord_map.py
Created November 13, 2019 11:58 — forked from lennax/coord_map.py
biopython coordinate mapper example
# Copyright 2012-2014 Lenna X. Peterson
# arklenna@gmail.com
# The first step to using the mapper is to get the exons from a GenBank or similar file.
# The mapper will accept exons as a sequence of pairs, a SeqRecord with a CDS feature, or a CDS SeqFeature.
# The file used in this example is located in the Tests directory of the Biopython source code.
from Bio.SeqUtils.Mapper import CoordinateMapper
from Bio import SeqIO