Skip to content

Instantly share code, notes, and snippets.

@uprime22
uprime22 / makeFilename.js
Last active May 5, 2024 17:16
適当な文字列から、半角英数日本語ピリオド以外を除きファイル名に使えそうな文字列を再構築する正規表現
function makeFilename(s){
var filename =
s.replace(/[^\.A-Za-z0-9\u30e0-\u9fcf\u3040-\u309f\u30a0-\u30ff]/gi, '');
return (filename);
};
@uprime22
uprime22 / Bookmarklet_Open_in_googleweblight_com.js
Last active May 5, 2024 17:16
Bookmarklet: Open in googleweblight.com
javascript:var%20h=location.href;var%20u='http://googleweblight.com/?lite_url='+h;location=u;
@voidfiles
voidfiles / gist:2289046
Created April 3, 2012 03:22
Simplenotes new iOS URL scheme
Hey Alex, there aren't any docs yet. Here's the info:
simplenote://new?content=encodedContent&tag=encodedTag
The parameters are optional. If omitted, Simplenote will open to a new, blank note.
@voidfiles
voidfiles / textrank.py
Created January 20, 2012 08:22
An implmentation of TextRank in python
"""
From this paper: http://acl.ldc.upenn.edu/acl2004/emnlp/pdf/Mihalcea.pdf
I used python with nltk, and pygraph to do an implmentation of of textrank.
for questions: http://twitter.com/voidfiles
"""
import nltk
import itertools
@voidfiles
voidfiles / js_hint_conf.js
Created December 17, 2011 08:21
JSHint conf options
{
// Settings
"passfail" : false, // Stop on first error.
"maxerr" : 10000, // Maximum error before stopping.
// Predefined globals whom JSHint will ignore.
"browser" : true, // Standard browser globals e.g. `window`, `document`.
"node" : false,
@voidfiles
voidfiles / jquery.ui.draggable.js
Created December 17, 2011 07:08
ussing css3 transitions to do jquery draggable
/*
* jQuery UI Draggable @VERSION
*
* Copyright 2011, AUTHORS.txt (http://jqueryui.com/about)
* Dual licensed under the MIT or GPL Version 2 licenses.
* http://jquery.org/license
*
* http://docs.jquery.com/UI/Draggables
*
* Depends:
@voidfiles
voidfiles / edits.md
Created December 14, 2011 22:10
Edits
layout title author categories
post
Flickr's Asynchronous Script Loading Part 2
Alex Kessinger
events
dom
code-review
flickr-async
@voidfiles
voidfiles / gist:2860137
Created June 2, 2012 22:06
Get Pocket Bookmarklet
// The Bookmarklet
javascript: (function() %
7BISRIL_H = '8e7a';
PKT_D = 'getpocket.com';
ISRIL_SCRIPT = document.createElement('SCRIPT');
ISRIL_SCRIPT.type = 'text/javascript';
ISRIL_SCRIPT.src = 'http://' + PKT_D + '/b/r.js';
document.getElementsByTagName('head') % 5B0 % 5D.appendChild(ISRIL_SCRIPT) % 7D)();
@rvrsh3ll
rvrsh3ll / windows-keys.md
Created February 18, 2024 22:44
Windows Product Keys

NOTE

These are NOT product / license keys that are valid for Windows activation.
These keys only select the edition of Windows to install during setup, but they do not activate or license the installation.

Index

/*
MIT License
Copyright (c) 2024 Florian Dreschel
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is