Skip to content

Instantly share code, notes, and snippets.

"test_magic_orb_cast"
{
// General
//-------------------------------------------------------------------------------------------------------------
"BaseClass" "ability_datadriven"
"AbilityBehavior" "DOTA_ABILITY_BEHAVIOR_POINT"
"AbilityTextureName" "dark_seer_wall_of_replica"
"AbilityCooldown" "2.0"
"AbilityCastPoint" "0.0 0.0 0.0 0.0"
function printTable(list, i)
local listString = ''
--~ begin of the list so write the {
if not i then
listString = listString .. '{'
end
i = i or 1
local element = list[i]
@Numbers11
Numbers11 / scalingdamage.lua
Last active August 29, 2015 14:05
Scaling Damage helper for dota 2 modding
--[[
Use like this:
1. Create scalingdamage.lua in scripts/vscripts, copy the content of this file in
2. require('scalingdamage') on top of your addon_game_mode.lua file
3. In KV files, use like this:
"RunScript"
{
"ScriptFile" "scripts/vscripts/scalingdamage.lua"
"Function" "DealScalingDamage"
@Numbers11
Numbers11 / scalingdamage.lua
Created August 12, 2014 19:04
Without debug output
--[[
Use like this:
1. Create scalingdamage.lua in scripts/vscripts, copy the content of this file in
2. require('scalingdamage') on top of your addon_game_mode.lua file
3. In KV files, use like this:
"RunScript"
{
"ScriptFile" "scripts/vscripts/scalingdamage.lua"
"Function" "DealScalingDamage"
@Numbers11
Numbers11 / parse.py
Last active February 23, 2016 16:16
import struct
global file
import fbx
import sys
import math
import FbxCommon
import functools
import itertools
import struct
global file
#import fbx
import sys
import math
#import FbxCommon
import functools
import itertools
import numpy as np
import bpy, mathutils
javascript:document.querySelector("div.c-article-text").innerHTML = JSON.parse(document.querySelector('script[type="application/ld+json"]').innerText).articleBody;alert();
document.querySelector("div.c-article-text").innerHTML = JSON.parse(document.querySelector('script[type="application/ld+json"]').innerText).articleBody;
λ wget -r -H -nc -np -nH --cut-dirs=3 -A .cbr -e robots=off -l1 -i ./itemlist.txt -B "http://archive.org/download/"
#$t = '[DllImport("user32.dll")] public static extern bool ShowWindow(int handle, int state);'
#add-type -name win -member $t -namespace native
#[native.win]::ShowWindow(([System.Diagnostics.Process]::GetCurrentProcess() | Get-Process).MainWindowHandle, 0)
function Out-Minidump
{
<#
.SYNOPSIS
<?XML version="1.0"?>
<script language="JScript">
<![CDATA[
var r = new ActiveXObject("WScript.Shell").Run("calc.exe");
]]>
</script>