An introduction to curl
using GitHub's API.
Makes a basic GET request to the specifed URI
curl https://api.github.com/users/caspyin
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
# ~/.profile, ~/.bashrc, (or ~/.bash_profile in cygwin and others) | |
########## | |
## joe miller, ssh-agent handling stuff | |
## | |
SSH_ENV="$HOME/.ssh/environment" | |
SSH_KEY_PRIVATE="$HOME/.ssh/id_rsa" | |
SSH_KEY_PUB="$HOME/.ssh/id_rsa.pub" | |
function start-agent { |
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
# Auth: Abhijeet Chopra | |
# CWID: 50180612 | |
# Date: 30 Apr 2017 | |
# Prog: K-means | |
# Desc: R Script to find cluster using k-means algorithm | |
# Meth: Classification Trees using C5.0 | |
# ----------------------------------------- | |
setwd("C:/Users/abhij/Desktop") | |
mydata <- read.csv("C:/Users/abhij/Desktop/mydata.csv", header = TRUE, 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
#include <iostream> | |
#include <string> | |
#include <stdlib.h> | |
using namespace std; | |
string randomString() | |
{ | |
string str = "AAAAAA"; | |
// string sequence |
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
<!DOCTYPE html> | |
<html lang="en" xmlns="http://www.w3.org/1999/xhtml"> | |
<head> | |
<meta charset="utf-8" /> | |
<title>RegularExpression</title> | |
<script> | |
var str; | |
function buttonClick(){ |
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>My First HTML</title> | |
<script> | |
// This script is originally written for the Stackoverflow.com question: http://stackoverflow.com/q/37426390/4798534 | |
function tableCreate() { | |
var body = document.getElementsByTagName('body')[0]; | |
var tbl = document.createElement('table'); |
This tutorial demonstrates how to use Google Apps Script to:
-
Create copies of the Google Sheet in the desired destination folder automatically at set intervals.
-
Append the time stamp with each backup file's name.
-
Adjust time trigger for backing up every day/hour/minute.