Skip to content

Instantly share code, notes, and snippets.

View gvegayon's full-sized avatar
🕸️

George G. Vega Yon gvegayon

🕸️
View GitHub Profile
@mitchwongho
mitchwongho / r-prog.md
Last active August 29, 2015 14:12
R Programming

R Programming

Google's R Style Guide https://google-styleguide.googlecode.com/svn/trunk/Rguide.xml

# This is a comment

# Get current working directory
> getwd()
@pschumm
pschumm / statab
Created October 7, 2014 00:06
Wrapper for "stata -b" which issues an informative error msg and appropriate (i.e., non-zero) return code
#! /bin/bash
# Wrapper for "stata -b" which issues an informative error msg and appropriate
# (i.e., non-zero) return code
# The basic idea for this script (including grepping the log file to determine
# whether there was an error) was taken from a similar script posted by Brendan
# Halpin on his blog at http://teaching.sociology.ul.ie/bhalpin/wordpress/?p=122
args=$# # number of args
@mycodeschool
mycodeschool / PreorderInorderPostorder_CPP.cpp
Last active October 29, 2023 09:20
Binary tree traversal: Preorder, Inorder, Postorder
/* Binary Tree Traversal - Preorder, Inorder, Postorder */
#include<iostream>
using namespace std;
struct Node {
char data;
struct Node *left;
struct Node *right;
};
@Vessy
Vessy / plotNetworksUsingGephi.R
Last active February 24, 2022 09:03
An example how to use R and rgexf package to create a .gexf file for network visualization in Gephi
# Plotting networks in R
# An example how to use R and rgexf package to create a .gexf file for network visualization in Gephi
############################################################################################
# Clear workspace
rm(list = ls())
# Load libraries
library("igraph")
library("plyr")