Skip to content

Instantly share code, notes, and snippets.

View mokolodi1's full-sized avatar

Teo Fleming mokolodi1

  • Amazon
  • Santa Monica, CA
  • 06:12 (UTC -07:00)
View GitHub Profile
void ft_putchar(char c)
{
write(1, &c, 1);
}
void ft_putstr(char *str)
{
int i = 0;
while (str[i] != '\0')
@mokolodi1
mokolodi1 / googlemap.js
Last active April 20, 2022 06:12 — forked from Plou/googlemap.js
Hide "points of interest" in google maps
// Reference: https://developers.google.com/maps/documentation/javascript/style-reference
let map = new google.maps.Map(document.getElementById('map-canvas'), {
disableDefaultUI: true,
styles: [
{
featureType: "poi",
elementType: "labels",
stylers: [
{ visibility: "off" }
SampleGroups = new Meteor.Collection("sample_groups");
var filterOptionsSchemas = {
include_sample_list: new SimpleSchema({
sample_labels: { type: [String] },
sample_count: { type: Number },
}),
exclude_sample_list: new SimpleSchema({
sample_labels: { type: [String] },
sample_count: { type: Number },
// publish users that are in the specified collaborations
Meteor.publish("usersInCollaborations", function (collaborations) {
// grab the associated collaborators (personal and otherwise) for all collaborations
let combinedCollabs = _.reduce(collaborations, (memo, name) => {
// grab the collaboration
let collab = Collaborations.findOne({ name });
// get the collaborators and add them to the working list
memo.concat(concat.getAssociatedCollaborators());
| Command | Description |
|---------|-------------|
| `w` | Shows currently logged in user |
| `write username TTYport` | Write to another person's terminal |
SampleGroups = new Meteor.Collection("sample_groups");
var sampleSchema = new SimpleSchema({
study_label: { type: String },
sample_label: { type: String },
patient_label: { type: String, optional: true },
});
SampleGroups.attachSchema(new SimpleSchema({
user_id: { type: String },
IsoformExpression = new Meteor.Collection("isoform_expression");
// ExpressionIsoform = new Meteor.Collection("expression_isoform");
var normalValue = {
type: Number,
decimal: true,
optional: true,
min: 0,
};
@mokolodi1
mokolodi1 / GeneExpression.js
Last active November 21, 2015 01:49
a working schema for GeneExpression
GeneExpression = new Meteor.Collection("gene_expression");
Expression2 = new Meteor.Collection("expression2");
var normalValue = {
type: Number,
decimal: true,
optional: true,
};
GeneExpression.attachSchema(new SimpleSchema({
# show all jobs with command
ps -ef
# create symbolic link
ln -s /path/somewhere name_in_this_folder
{
"type" : "mutation",
"algorithm" : "wekamine",
"signature_slug": "LUAD_KEAP1_NonSilent",
"label" : "KEAP1 non-silent mutation",
"gene_label" : "KEAP1",
"input_data_normalization": "quantile_normalized_counts",
"input_data_type": "microarray",
"training_set": "TCGA LUAD expression non-silent tumors vs. silent tumors",
"sample_values" : [