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
from flask import Flask | |
from flask import request | |
app = Flask(__name__) | |
@app.route("/purchase", methods = ["POST", "GET"]) | |
def purchase(): | |
if request.method == "POST": | |
name = request.form["item_name"] | |
tx = request.form["tx"] |
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
// callbacks.go | |
package main | |
import ( | |
"fmt" | |
"github.com/Philipp15b/go-steam" | |
"github.com/Philipp15b/go-steam/internal/steamlang" | |
"io/ioutil" | |
"time" | |
) |
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
from twisted.words.protocols import irc | |
from twisted.words.protocols.irc import assembleFormattedText as aFT, attributes as A | |
from twisted.internet import defer, reactor, protocol, task | |
import requests as r | |
class bot(irc.IRCClient): | |
last_price = 0 | |
@property | |
def market_label(self): |
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
import threading | |
import time | |
import random | |
from datetime import datetime | |
import requests | |
# The user hash can be found by viewing the source of any tf2outpost.com page whilst logged in. | |
# It will change upon logging in or out. |
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
package main | |
import ( | |
"io" | |
"net/http" | |
) | |
func hello(w http.ResponseWriter, r *http.Request) { | |
io.WriteString(w, "Hello, World!") | |
} |
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
var Steam = require("steam"); | |
var SteamTrade = require("steam-trade"); | |
var _ = require("underscore"); | |
var steam = new Steam.SteamClient(); | |
var steamTrade = new SteamTrade(); | |
var config = require("./config.js"); | |
var adminID = config.adminID | |
var username = config.username; | |
var password = config.password; | |
var finished = false |
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
#!/usr/bin/env python | |
from collections import OrderedDict, namedtuple | |
from datetime import datetime | |
from threading import Timer | |
import requests | |
fee_factor = 0.9974 | |
currencies = OrderedDict( | |
[("LTCUSD", "XLTCZUSD"), ("LTCXBT", "XLTCXXBT"), ("XBTUSD", "XXBTZUSD")]) |
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
package main | |
import ( | |
"flag" | |
"fmt" | |
"math" | |
) | |
func main() { | |
feed := flag.Float64("feed", 1, "the feed flowrate") |
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
package main | |
import ( | |
"encoding/json" | |
"flag" | |
"fmt" | |
"math" | |
"net/http" | |
"strconv" | |
"time" |
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
Sub blanks() | |
Application.ScreenUpdating = False | |
Set xr = Worksheets("Sheet1") | |
For colNum = 1 To 19 Step 2 | |
For Each c In xr.Range(xr.Cells(9, colNum), xr.Cells(56, colNum)) | |
If IsEmpty(c) And c.Interior.ColorIndex = xlNone And c.Font.Bold = False Then | |
If c.NumberFormat <> "0.000" And c.Row <> 19 And c.Row <> 20 And c.Row <> 38 And c.Row <> 39 Then | |
c.Value = "0" | |
End If | |
End If |
OlderNewer