Skip to content

Instantly share code, notes, and snippets.

Cris Noble crismanNoble

Block or report user

Report or block crismanNoble

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@crismanNoble
crismanNoble / wordFrequency.js
Created Sep 5, 2012
Get frequency of words on a webpage.
View wordFrequency.js
//todos: 1) moar than just <p>s, just words. 2)strip out &amp;s and stuff 3)Order by top use
//via: https://www.squarefree.com/bookmarklets/seo.html
javascript:(function(){
var T={},W=[],C=0,s,i;
function F(n){
var i,x,a,w,t=n.tagName;
if(n.nodeType==3){
a=n.data.toLowerCase().split(/[\s\(\)\:\,\.;\<\>\&\'\"]/);
for(i in a)if(w=a[i]){
w=" "+w;T[w]=T[w]?T[w]+1:1;++C;}
View mc-form.html
<form class="mc-form-example" method="POST" action="./endpoint.php">
<h3>Newsletter Sign Up</h3>
<label for="mc-email">Email Address:</label>
<input type="email" id="mc-email" name="mc-email" required/>
<input type="text" value="pending" id="status" name="status" hidden/>
<input type="submit" value="Submit">
</form>
View bookmarklet: new tab text field
javascript:(function(e,a,g,h,f,c,b,d){if(!(f=e.jQuery)||g>f.fn.jquery||h(f)){c=a.createElement("script");c.type="text/javascript";c.src="//ajax.googleapis.com/ajax/libs/jquery/"+g+"/jquery.min.js";c.onload=c.onreadystatechange=function(){if(!b&&(!(d=this.readyState)||d=="loaded"||d=="complete")){h((f=e.jQuery).noConflict(1),b=1);f(c).remove()}};a.documentElement.childNodes[0].appendChild(c)}})(window,document,"1.9.0",function($,L){
var src = 'data:text/html, <textarea style="font-size: 1.5em; width: 100%; height: 100%; border: none; outline: none" autofocus />';
var link = document.createElement('form');
link.action=src;link.id='superSecretLink';
link.target='_blank';
var target = document.getElementsByTagName('body')[0];
target.appendChild(link);
document.getElementsByTagName('form')[document.getElementsByTagName('form').length - 1].submit()
});
View Review of Scott McNealy's talk
Scott McNealy's Talk at 1871 on 1/22/2013
5 Lessons:
1) Have a Cause
- They didn't have a cause until like 2000 or so, but when they did people worked harder
- Their cause was to go green
2) Make Quality / Customer Service Top Priority at ALL levels
- Quality issues should always be #1 on the agenda
3) Define the decision making process (absolute v consensus v participative)
- Unless you are Steve Jobs you can't do absolute
View jQuery html fill
$('.noun_project_865').html(noun_project_865);
View svgRaw.html
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" id="Layer_1" x="0px" y="0px" width="100px" height="100px" viewBox="0 0 100 100" enable-background="new 0 0 100 100" xml:space="preserve">
<g>
<polygon points="35.009,97.063 35.009,97.063 47.875,50.553 25.601,51.904 42.521,7.001 67.758,2.937 49.133,36.511 74.399,33.256 "/>
</g>
</svg>
View SVG data as a js var
var noun_project_865 = '<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" id="Layer_1" x="0px" y="0px" width="100px" height="100px" viewBox="0 0 100 100" enable-background="new 0 0 100 100" xml:space="preserve"><g><polygon points="35.009,97.063 35.009,97.063 47.875,50.553 25.601,51.904 42.521,7.001 67.758,2.937 49.133,36.511 74.399,33.256 "></polygon></g></svg>';
View svgimg.html
<img src="images/noun_project_865.svg" />
You can’t perform that action at this time.