Skip to content

Instantly share code, notes, and snippets.

; +-------------------------------------------+
; | Program ...... FASMCam |
; | Author ....... Marcus Araujo |
; | Description .. this application shows how |
; | to access webcam via FASM. |
; +-------------------------------------------+
format PE GUI 4.0
entry codestart
<?php
/**
* The template for displaying all pages.
*
* This is the template that displays all pages by default.
* Please note that this is the WordPress construct of pages
* and that other 'pages' on your WordPress site will use a
* different template.
*
* @package WordPress
from glob import glob
import os
domains = glob('../domains/*')
for domain in domains:
domain_name = domain.rsplit('/')[-1]
public_html = '%s/public_html' % domain
if not 'kredyt' in domain_name:
print "NOT %s" % domain_name
XHR finished loading: "http://localhost:3000/databases/contentbase3/collections/testcol/51238d0be4b00d3080f60041??". angular.js:9002
XHR finished loading: "http://localhost:3000/databases/contentbase3/collections/testcol/51238d0be4b0f0616fad676c??". angular.js:9002
XHR finished loading: "http://localhost:3000/databases/contentbase3/collections/testcol/51238d0be4b00d3080f60040??". angular.js:9002
XHR finished loading: "http://localhost:3000/databases/contentbase3/collections/testcol/51238d0be4b0f0616fad676b??". angular.js:9002
XHR finished loading: "http://localhost:3000/databases/contentbase3/collections/testcol/51238d0be4b0f0616fad676d??". angular.js:9002
DELETE http://localhost:3000/databases/contentbase3/collections/testcol/51238d0ce4b00d3080f60042? 405 (Method Not Allowed) angular.js:9002
XHR finished loading: "http://localhost:3000/databases/contentbase3/collections/testcol/51238d0ce4b00d3080f60042??". angular.js:9002
DELETE http://localhost:3000/databases/contentbase3/collections/testcol/51238d0ce4b0f06
@crackcomm
crackcomm / benchmark.coffee
Created March 20, 2013 13:50
My way of serializing cheerio object
# Benchmark
{Benchmark} = require 'benchmark'
suite = new Benchmark.Suite
suite.add("mapList(inputs)",
fn: ->
mapList(inputs)
)
@crackcomm
crackcomm / test.coffee
Created March 20, 2013 21:35
This code doesn't work!
fs = require 'fs'
cheerio = require 'cheerio'
file = __dirname + '/test.html'
f = fs.readFileSync file, 'utf8'
$ = cheerio.load f
inputs = $('html').toArray()
console.log JSON.stringify inputs # TypeError: Converting circular structure to JSON
fs = require 'fs'
f = fs.readFileSync process.argv[2], 'utf8'
reSplit = /\((.+?)\)/g
lista = f.match reSplit
fs.writeFileSync process.argv[3], lista.join(' ')
if process.argv.length < 3
html = require './html'
q = require './q'
{sequence} = q
{unpatch} = html
index = 'http://rozklady.mzkjastrzebie.com/index.php?MenuItem=2'
action =
parseUrl: index
@crackcomm
crackcomm / client.py
Last active December 18, 2015 21:29 — forked from stevvooe/client.py
import json
import socket
s = socket.create_connection(("127.0.0.1", 5090))
s.sendall(json.dumps(({"id": 1, "method": "Hello.Hello", "params": ["hello"]})))
print s.recv(4096)
function vialModule(module)
local pos = Self.Position()
Self.DropFlasks(pos.x, pos.y, pos.z)
module:Delay(15000) -- check every 15s
end
local VialModule = Module.New('VialModule', vialModule)