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> | |
<head> | |
<meta charset="utf-8"> | |
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"> | |
<title>GETTING STARTED WITH BRACKETS</title> | |
<meta name="description" content="An interactive getting started guide for Brackets."> | |
<link rel="stylesheet" href="main.css"> | |
</head> | |
<style> |
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> | |
<head> | |
<meta charset="utf-8"> | |
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"> | |
<title>GETTING STARTED WITH BRACKETS</title> | |
<meta name="description" content="An interactive getting started guide for Brackets."> | |
<link rel="stylesheet" href="main.css"> | |
</head> | |
<style> |
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 'grid.less'; | |
// Specify the number of columns and set column and gutter widths | |
@columns: 12; | |
@column-width: 60; | |
@gutter-width: 20; | |
// Remove the definition below for a pixel-based layout | |
@total-width: 100%; |
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
# | |
# Get appraised value of car from Edmunds.com using the developer API with R | |
# Reference: http://developer.edmunds.com/docs/read/The_Vehicle_API | |
# | |
# set working dir | |
setwd('~/R/carvalue') | |
#load libraries | |
library(RJSONIO) |
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
/* | |
BrowserDetect.browser == 'Explorer'; | |
BrowserDetect.version <= 8; | |
*/ | |
var BrowserDetect = | |
{ | |
init: function () { | |
this.browser = this.searchString(this.dataBrowser) || "Other"; | |
this.version = this.searchVersion(navigator.userAgent) || this.searchVersion(navigator.appVersion) || "Unknown"; | |
}, |
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(shiny) | |
library(ggplot2) | |
library(RCurl) | |
library(reshape2) |
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
(loop [i 0] | |
(if (< i 10) | |
(recur (inc 1)) | |
i)) | |
(str "2 is " (if (even? 2) "even" "odd")) | |
(if (true? false) "impossible!") | |
(defn factorial [x] |
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
//remove lein | |
rm -r ~/.m2 | |
echo $PATH | |
ls /usr/bin | grep lein | |
... | |
rm -r /usr/bin/lein | |
//install lein | |
wget https://raw.github.com/technomancy/leiningen/stable/bin/lein | |
sudo mv lein /usr/bin/lein |
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
$ sudo apt-get remove mplayer | |
$ sudo apt-get --purge remove lighttpd | |
//To list all installed package | |
dpkg --list | |
dpkg --list | less | |
dpkg --list | grep -i 'http' | |
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/env ruby | |
# Please read http://otobrglez.opalab.com for more information about this code. | |
class Book < Struct.new(:title) | |
def words | |
@words ||= self.title.gsub(/[a-zA-Z]{3,}/).map(&:downcase).uniq.sort | |
end |