This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<html> | |
<head> | |
<title>Stacked Bar Chart</title> | |
<script type="text/javascript" src="protovis.js"></script> | |
</head> | |
<body> | |
<div id="figure-wrapper"> | |
<div id="figure"> | |
<script type="text/javascript+protovis"> | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/perl | |
#The purpose of this algorithm is to identify | |
# the edit distance of two words in similarity. | |
#Enter both words for alignment | |
print "Please enter first word: "; | |
chomp($one = <STDIN>); | |
print "Please enter second word: "; | |
chomp($two = <STDIN>); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
library(dplyr) | |
library(ggplot2) | |
library(viridis) | |
library(ggthemes) | |
#import all the files | |
temp <- list.files(pattern="*.csv") | |
alldata<- do.call(rbind, lapply(temp, function(x) read.csv(x, stringsAsFactors = FALSE))) | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
res <- sqlQuery(dbhandle, query1) | |
odbcClose(dbhandle) | |
result <- data.frame(res) | |
result |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import(readr) | |
online_orders <- read_csv("online_orders.csv", | |
col_types = cols(ORDER_DATE = col_datetime(format = "%Y-%m-%d %H:%M:%S"), | |
STATUS_DATE = col_datetime(format = "%Y-%m-%d %H:%M:%S"))) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
int cnt = 100; | |
int[][] color_collection = new color[5][5]; | |
FingerMonster[] fm = new FingerMonster[cnt]; | |
int t,i,j; | |
color c, c1, c2; | |
int[] colors = new int[5]; | |
void setup(){ | |
size(3000,2000); | |
noStroke(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
float n,r, div,margin; | |
int iter; | |
color a, b; | |
void setup() | |
{ | |
size(1000,1000); | |
background(255); | |
n = 6; | |
r = 5; | |
a = getColor(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
Programing: Noise Field | |
Name: @Generate.Collective | |
Color functions are tewmplates used by @manolode | |
*/ | |
/////////////////////////////////////////////////////////// | |
int move, n; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
Programing: Explorations in the Arc Realm | |
Name: Chris Ried | |
*/ | |
ArcLine[][] al; | |
float start_arc, stop_arc, r, diff, margin, x, y, nf; | |
float noise_factor; | |
int n; | |
void setup() |
OlderNewer