Skip to content

Instantly share code, notes, and snippets.

@100ideas
100ideas / hookio-fakerjs-storyprinter.js
Last active May 24, 2017 10:41
hook.io microservice for generating fake data for 100ideas/storyprinter
// Simple microservice for generating fake data for 100ideas/storyprinter
// https://hook.io/100ideas/fakerjs-storyprinter?numstories=5
//
// faker.js docs - http://github.com/marak/faker.js
module['exports'] = function fakeData (hook) {
let faker = require('faker');
let params = hook.params;
let numStories = hook.params.numstories || 15;
@100ideas
100ideas / apt-plan.sh
Created December 7, 2016 12:01
Lists how many deps apt-get will install for a given set of packages
#!/bin/bash
# repo https://gist.github.com/100ideas/009d4f5e1d6f619c755d04c3aad28438
echo "how many new packages are added if we apt-get install:" > apt-plan.txt;
echo $@ >> apt-plan.txt;
printf "\n\tLists how many deps apt-get will install for a given set of packages.\n\tExtended output saved to apt-plan.txt\n";
COLFRMT="%-6s %-25s %-49s\n";
# printf "\nnew\tpkg\n----- \t---------------\n";
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@100ideas
100ideas / README.md
Created September 30, 2016 04:56 — forked from nitaku/README.md
Graph editing with persistence

Same as the previous example, but with client-side persistence, thanks to the IndexedDB APIs (see this other example).

Try to modify the graph, then reload the page to load it again.

The graph is automatically saved on each modification of its structure, and also every second with a setInterval, to store even the changes made to nodes' position by the force layout.

@100ideas
100ideas / hexo_gitbook.sh
Created February 29, 2016 01:26 — forked from TommyLau/hexo_gitbook.sh
Generate GitBook project for Hexo
#!/bin/sh
# Setup the directory name
DIRNAME=GitBook
# Remove the old GitBook directory
rm -fr $DIRNAME
mkdir $DIRNAME
# Generate the README.md
cat <<-EOF >$DIRNAME/README.md
<!DOCTYPE html>
<!-- saved from url=(0048)https://www.manylabs.org/docs/general/workspace/ -->
<html lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<link rel="apple-touch-icon" sizes="57x57" href="https://www.manylabs.org/static/favicons/apple-touch-icon-57x57.png">
<link rel="apple-touch-icon" sizes="60x60" href="https://www.manylabs.org/static/favicons/apple-touch-icon-60x60.png">
<link rel="apple-touch-icon" sizes="72x72" href="https://www.manylabs.org/static/favicons/apple-touch-icon-72x72.png">
<link rel="apple-touch-icon" sizes="76x76" href="https://www.manylabs.org/static/favicons/apple-touch-icon-76x76.png">
@100ideas
100ideas / fancy_frontend.md
Created August 11, 2015 21:16
Fancy frontend resources circa 2014
igem_2015_medaling_requirements-CommunityLabsTrack
Bronze.
Your team must convince the judges you have achieved the following 6 goals:
Register for iGEM, have a great summer, and attend the Giant Jamboree.
Complete the Judging form.
Create a Team Wiki.
Present a poster and a talk at the iGEM Jamboree. See the 2015 poster guidelines for more information.
Create a page on your team wiki with clear attribution of each aspect of your project. This page must clearly attribute work done by the students and distinguish it from work done by others, including host labs, advisors, instructors, sponsors, professional website designers, artists, and commercial services.
Interact with your community by creating an engaging activity that showcases iGEM, synthetic biology and community labs. This activity could involve teaching a class to your community, running a public forum to promote the discussion of synthetic biology, or another activity.
Silver:
@100ideas
100ideas / WLA_rs333_sequencing
Created June 15, 2015 19:08
Autodesk WetLabAccelerator omniprotocol testing - rs333 sequencing from buccal sample
{
"metadata": {
"id": "f9a628d3-8a70-4d0c-b564-ba408224c32a",
"date": "1434393769046",
"type": "protocol",
"author": {},
"tags": [
"sequence",
"snp",
"pcr",
@100ideas
100ideas / .bash_profile
Created March 28, 2015 21:44
.bash_profile to add some nice formatting to your terminal
#######################################
# Colors!!!
#
# be sure to set BOLD color as different from
# normal text color in Terminal.app
export CLICOLOR=1
export LSCOLORS=GxFxCxDxBxegedabagaced