Skip to content

Instantly share code, notes, and snippets.

@FromStoneage
FromStoneage / profiles.json
Created June 30, 2019 16:28
Terminal Preview Default Settings - Windows 10
{
"globals" :
{
"alwaysShowTabs" : true,
"defaultProfile" : "{61c54bbd-c2c6-5271-96e7-009a87ff44bf}",
"initialCols" : 120,
"initialRows" : 30,
"keybindings" :
[
{
{
"editor.tabSize": 2,
"editor.formatOnSave": true,
"[javascript]": {
"editor.formatOnSave": false
},
"eslint.autoFixOnSave": true,
"eslint.alwaysShowStatus": true,
"files.trimTrailingWhitespace": true,
"files.exclude": {
@FromStoneage
FromStoneage / Sublime Settings.json
Last active January 4, 2018 17:11
Sublime Settings
{
"file_exclude_patterns":
[
"datastore.json",
"dev"
],
"folder_exclude_patterns":
[
".svn",
".git",
@FromStoneage
FromStoneage / gist:6f8223c7d563a441ea8d
Last active September 2, 2015 16:47 — forked from howtogeek/gist:6b3ed7d917900229b37e
Change font to Comic Sans if reader is using Adblock (and display a message at the top)
<script type="text/javascript">
var iframe = document.createElement("iframe");
iframe.height = "1px";
iframe.width = "1px";
iframe.id = "ads-text-iframe";
iframe.src = "/adframe.js";
document.body.appendChild(iframe);
var a = [
"In a world free from ads, one font reigns supreme. COMIC SANS!",
# to install the latest stable version:
brew install scala --with-docs
# to install scala-2.10.0-RC1:
brew install https://raw.github.com/gist/3939012/scala.rb --with-docs
# to switch versions (from https://github.com/mxcl/homebrew/wiki/External-Commands):
brew switch scala 2.9.2
brew switch scala 2.10.0-RC1
@FromStoneage
FromStoneage / scrape.rb
Created December 11, 2011 10:02
scrape national geographic photos of the day
require 'rubygems'
require 'nokogiri'
require 'open-uri'
url = "http://photography.nationalgeographic.com/photography/photo-of-the-day/leaf-detail-beach/"
base_url ="http://photography.nationalgeographic.com"
345.times do |d|
doc = Nokogiri::HTML(open(url))