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
// compile with: g++ -lboost_thread -lboost_system -ggdb -O0 -std=c++1y gdb_bug.cc | |
#include <boost/thread.hpp> | |
#include <iostream> | |
using namespace std; | |
using namespace boost; |
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 random | |
import sys | |
def run(n=100): | |
a = 0 | |
c = 0 | |
while a < n: | |
c += 1 | |
if a % 2 == 0: | |
d = 1 |
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 conf = { | |
first_find: "spell=1\" class=p>", | |
last_find: "</a>", | |
correct: "" | |
}; | |
CmdUtils.CreateCommand({ | |
name: "spellcheck", | |
takes: {"Text To check": noun_arb_text}, | |
preview: function(pblock, statusText) { | |
var text = statusText.text |
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
// Ubiquity code from http://ubiquity.appjet.net/ | |
// BY: ip-get | |
// Title: ip-get | |
/* Description: Get your Ip address */ | |
CmdUtils.CreateCommand({ | |
name: "ip-get", | |
preview: function( pblock ) { | |
jQuery.get("http://json-through.appjet.net/ip", function (ip) { | |
pblock.innerHTML = "Your ip is "+ip; |
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
// Quotes from: http://quote.appjet.net | |
// Ubiquity code from http://ubiquity.appjet.net/ | |
// BY: quote | |
// Title: quote | |
/* Description: Add quote to anything from http://quote.appjet.net */ | |
var quote = "Made by Mattewfl.com"; | |
function get_quote (b) { | |
b = b || function () {}; |
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
# uses http://code.google.com/p/python-twitter/ | |
import twitter | |
import time | |
def main(): | |
global uesr, password | |
twit = twitter.Api(username=user, password= password) | |
twit.SetCache(None) | |
while 1: | |
try: |
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
function query (domain, obj) { | |
var url = "http://domai.nr/api/json/search?q="+domain | |
jQuery.get(url, null, function (j) { | |
j = Utils.decodeJson(j); | |
var text = ""; | |
for(var a =0;a< j.results.length;a++) { | |
text += "<p style='color:"; | |
text += j.results[a].availability == "taken" ? "red" : "green"; | |
text += "'>"; | |
text += j.results[a].domain + j.results[a].path; |
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 | |
files=( main ) # should be file name without suffix, suffix should be .c | |
target="program" | |
setting="-D_VEX_BOARD" | |
if [ -z $1 ] | |
then | |
echo "$0 [build | download | clean]" |
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/sh - | |
"exec" "python" "-O" "$0" "$@" | |
__doc__ = """Tiny HTTP Proxy. | |
This module implements GET, HEAD, POST, PUT and DELETE methods | |
on BaseHTTPServer, and behaves as an HTTP proxy. The CONNECT | |
method is also implemented experimentally, but has not been | |
tested yet. |
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://www.xs4all.nl/~weegen/eelis/analogliterals.xhtml | |
#ifndef ANALOGLITERALS_HPP | |
#define ANALOGLITERALS_HPP | |
namespace analog_literals { | |
typedef unsigned int uint; | |
// Symbols |
OlderNewer