This file contains 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 | |
# On OS X 10.9 (see: http://stackoverflow.com/questions/19242275/sed-re-error-illegal-byte-sequence-on-mac-os-x) | |
# export LC_CTYPE=C | |
# export LANG=C | |
# http://stackoverflow.com/questions/149057/how-to-remove-trailing-whitespace-of-all-files-recursively | |
find . -not \( -name .svn -prune -o -name .git -prune \) -type f -print0 | xargs -0 sed -i '' -E "s/[[:space:]]*$//" |
This file contains 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
""" | |
setup.py | |
py2app setup script for creating a semi-standalone .app | |
around a Maya API based PyQt4 application. | |
Only bundled PyQt4 with the app, and references the Maya install | |
location for the python environment. | |
Allows for a portable GUI application that does not require |
This file contains 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
sqlite3 ~/Library/Preferences/com.apple.LaunchServices.QuarantineEventsV* 'select LSQuarantineDataURLString from LSQuarantineEvent' |
This file contains 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://stackoverflow.com/a/23558809/720077 | |
def fibonacci(): | |
a, b = [1], [0] | |
def fibo(): | |
a[0], b[0] = b[0], a[0] + b[0] | |
return a[0] | |
return fibo |
This file contains 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 random | |
from lxml import etree | |
import requests | |
def main(url): | |
response = requests.get(url) | |
root = etree.HTML(response.content) |
This file contains 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
; Author UP_NORTH | |
Func RestartScript() | |
If @Compiled = 1 Then | |
Run( FileGetShortName(@ScriptFullPath)) | |
Else | |
Run( FileGetShortName(@AutoItExe) & " " & FileGetShortName(@ScriptFullPath)) | |
EndIf | |
Exit | |
EndFunc |
This file contains 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
; IMPORTANT MAKE A COPY OF SCRIPT BEFORE DELETION | |
; Deletes the running script | |
; Author Larry | |
Func SuiCide() | |
$SC_File = @TEMPDIR & "\suicide.bat" | |
FileDelete($SC_File) | |
$SC_batch = 'loop:' & @CRLF & 'del "' & @SCRIPTFULLPATH & '"' & @CRLF & _ | |
'ping -n 1 -w 250 zxywqxz_q' & @CRLF & 'if exist "' & @SCRIPTFULLPATH & _ | |
'" goto loop' & @CRLF & 'del suicide.bat' & @CRLF |
This file contains 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
<div style="margin:10px; margin-top:5px"> | |
<div style="margin-bottom:2px"> | |
<b>Spoiler</b>: <input class="button" type="button" value="Mutat" onclick="rejt(this)"> | |
</div> | |
<div style="margin: 0px; padding: 6px; border: 1px inset;"> | |
<div class="spoiler" style="visibility: hidden;"> | |
{param} | |
</div> | |
</div> | |
</div> |
This file contains 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
; For explanation, see this forum topic: http://www.autoitscript.com/forum/topic/147424-disable-or-remove-close-minimize-maximize-buttons-on-any-window-in-runtime/ | |
#include <WinAPI.au3> | |
#include <Constants.au3> | |
#include <WindowsConstants.au3> | |
$h = WinGetHandle("Untitled - Note") | |
$iOldStyle = _WinAPI_GetWindowLong($h, $GWL_STYLE) | |
ConsoleWrite("+ old style: " & $iOldStyle & @CR) |
This file contains 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
Func EditScript() | |
ShellExecuteWait(@ProgramFilesDir & '\AutoIt3\SciTE\SciTE.exe', @ScriptFullPath, @ScriptDir) | |
RestartScript() | |
EndFunc |
OlderNewer