This file contains hidden or 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
#!/bin/bash | |
script_id="$$"; | |
files=`find /proc/$script_id/fd -not -type d`; | |
for file in $files; | |
do | |
echo $file && ls -l $file | |
if [ -a "$file" ]; then echo $file' -a - True if file exists.'; fi |
This file contains hidden or 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
Show hidden characters
[ | |
{ "keys": ["ctrl+k", "ctrl+m"], "command": "md5fy" }, | |
{ "keys": ["ctrl+k", "ctrl+n"], "command": "numbering" } | |
] |
This file contains hidden or 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
# -*- coding: utf-8 -*- | |
import hashlib | |
import sublime | |
import sublime_plugin | |
class Md5fyCommand(sublime_plugin.TextCommand): | |
def run(self, edit, *args): | |
for region in self.view.sel(): | |
if not region.empty(): |
This file contains hidden or 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
// http://jsfiddle.net/montefuscolo/ogtzpt4t/ | |
Object.defineProperty( | |
Array.prototype, | |
'group', | |
{ | |
enumerable: false, | |
value: function (n) { | |
var initial = [ | |
[] |
This file contains hidden or 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
/** | |
* I'm not author of this script. The author (I guess) can be found | |
* at http://pipetree.com/qmacro/blog/2013/10/sheetasjson-google-spreadsheet-data-as-json/ | |
*/ | |
function doGet(request) { | |
var output = ContentService.createTextOutput(); | |
var data = {}; | |
var id = request.parameters.id; | |
var sheet = request.parameters.sheet; | |
var ss = SpreadsheetApp.openById(id); |
This file contains hidden or 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
(function($){ | |
if(!$) { | |
return; | |
} | |
var match = document.cookie.match(/csrftoken=(\w+)/); | |
var token = match ? match[1] : ''; | |
$.ajaxSetup({ | |
headers: { 'X-CSRFToken': token } |
This file contains hidden or 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 bash | |
# Send UPnP message | |
# | |
# @param 1 - host:port/query (optional when UPNP_URL is set) | |
# @param 2 - service#action (optional when UPNP_ACTION is set) | |
# @param 3 - message arguments in XML format (optional) | |
upnp_send() | |
{ | |
# prefer arguments over presets |
This file contains hidden or 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"> | |
<title>Fallback to Less</title> | |
<script type="text/javascript"> | |
function fallbackToLess(){ | |
var script = document.createElement('script'); | |
script.src = "js/libs/less-1.7.0.min.js"; |
This file contains hidden or 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
deb http://old-releases.ubuntu.com/ubuntu/ intrepid main restricted | |
deb-src http://old-releases.ubuntu.com/ubuntu/ intrepid main restricted | |
## Major bug fix updates produced after the final release of the | |
## distribution. | |
deb http://old-releases.ubuntu.com/ubuntu/ intrepid-updates main restricted | |
deb-src http://old-releases.ubuntu.com/ubuntu/ intrepid-updates main restricted | |
## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu | |
## team. Also, please note that software in universe WILL NOT receive any | |
## review or updates from the Ubuntu security team. | |
deb http://old-releases.ubuntu.com/ubuntu/ intrepid universe |
This file contains hidden or 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/python2 | |
# -*- coding: utf-8 -*- | |
# | |
# Coloque esse script na pasta com os arquivos dhx. | |
# O resultado estará em iso-8859-1 | |
# | |
# | |
# Segui o tutorial em http://www.caloni.com.br/blog/archives/conversor-de-houaiss-para-babylon-parte-1 |