Skip to content

Instantly share code, notes, and snippets.

@scottbw
scottbw / gist:bdb3fdf16a4394fd343c0ca1681319c4
Created September 24, 2018 20:13
Adobe Color bookmarklet
javascript:(function(){
var palette_name=$('title').text();
var palette=($('.themeBox').children().map(function(){
return '<color>'+$(this).attr("style").replace('background: ','')+'</color>';}).get().join(''));
var palette_xml='<color-palette name=\''+palette_name+'\' type=\'regular\'>'+palette+'</color-palette>';
alert(palette_xml)})();
# Created by Octave 4.0.3
# name: Theta1
# type: matrix
# rows: 25
# columns: 401
-0.1452420443073326 0.02137228101364598 -0.006297234623293278 -0.0747751237578012 -0.03588490043111993 -0.07185659453478196 -0.04035165065735307 0.08948108983720332 -0.07307420330629799 0.007290640720631692 0.07927821515348174 0.004727012088989186 -0.05405132020197352 0.06691587491521574 -0.0961953421282587 -0.03310881772194291 0.04676953978440582 -0.05787056487071465 -0.05898433366084992 -0.01562675536145232 0.04992545446832077 -0.01897127283477648 -0.09539752618941139 0.01264083227698809 -0.05060929437541877 -0.07029271429033196 -0.02705306958296808 -0.03467361698988624 0.01556835757492992 -0.1043250185383472 -0.07567335630686908 -0.03163713967911808 0.07785558604675932 0.02530798306485411 -0.08504234936089054 -0.06189932093973835 0.05668734706077096 0.06927394915443132 0.07525679871167169 -0.01530504449287785 0.05145105401387515 0.06040315507937408 0.06474126267853358 -0.0928608480370504 -0.03602276035816206 -0.0577866931798
FILES=*.html
for f in $FILES
do
echo "Processing $f file..."
# take action on each file. $f store current file name
java -jar htmlcleaner-2.21.jar src=$f dest=$f.cleaned outputtype=htmlsimple
done
{"tableName":"jacs3_20120529","primaryKeys":["jacs3_20120529_index"],"columns":[{"columnName":"code","columnType":"VARCHAR","referencedColumnIndex":null,"referencedTable":null,"referencedColumn":null,"alternateColumns":null,"alternativeOptions":null,"orderIndex":1,"comment":""},{"columnName":"value","columnType":"VARCHAR","referencedColumnIndex":null,"referencedTable":null,"referencedColumn":null,"alternateColumns":null,"alternativeOptions":null,"orderIndex":2,"comment":""},{"columnName":"jacs3_20120529_index","columnType":"INTEGER","referencedColumnIndex":null,"referencedTable":null,"referencedColumn":null,"alternateColumns":null,"alternativeOptions":null,"orderIndex":3,"comment":""}],"rows":[{"cell":{"code":{"value":"A100","type":"VARCHAR","defaultValue":null},"jacs3_20120529_index":{"value":"1","type":"INTEGER","defaultValue":null},"value":{"value":"Pre-clinical medicine","type":"VARCHAR","defaultValue":null}},"indexCell":null},{"cell":{"code":{"value":"A200","type":"VARCHAR","defaultValue":null},"jacs3_20
@scottbw
scottbw / jquery.oauth.js
Created November 6, 2011 00:23 — forked from andyedinborough/jquery.oauth.js
Introduces $.oauth() to make using OAuth from jQuery as easy as using $.ajax()
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
@scottbw
scottbw / Loader.js
Created March 2, 2011 09:26
This is a wrapper for Ryan Grove's LazyLoad enabling dynamic binding and exporting
/**
* Loader is a wrapper around LazyLoad that resolves a requested library, loads it, and then when loaded it
* fires a callback with the object exported by the library.
*
* Copyright (c) 2011 Scott Wilson <scott.bradley.wilson@gmail.com>
*
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
@scottbw
scottbw / Chrome web store download script
Created January 31, 2011 10:08
This script adds a "download.crx" link on the Chrome Web Store when you navigate to an app details page.
// ==UserScript==
// @name Chrome Web App Download
// @namespace http://www.getwookie.org/crx
// @description Adds download links to the Chrome Web Store so you can get the source code and metadata for Chrome Web Apps
// @require http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js
// ==/UserScript==
// By Scott Wilson <scott.bradley.wilson@gmail.com>
//
// This script adds a "download.crx" link on the Chrome Web Store when you navigate to an app details page.