This file contains hidden or 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
Queue = function(){ | |
this.stopped = false; | |
this.array = []; | |
} | |
Queue.prototype = { | |
add: function(fn) { this.array.push(fn) }, | |
pause: function() { this.stopped = true }, | |
go: function() { this.stopped = false; this.exec(); }, | |
exec: function() { |
This file contains hidden or 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
<!DOCTYPE html> | |
<html> | |
<head> | |
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js"></script> | |
<script> | |
var xColor = "black"; | |
$(document).ready(function() { | |
var canvas = document.getElementById("myCanvas"); | |
var ctx = canvas.getContext("2d"); |
This file contains hidden or 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 | |
DIR="/home/minecraft/mc-$1/" | |
SCR="mc-$1" | |
MAX_STOP=10 | |
if [[ "$1" == "s1" ]] ; then | |
memory=12288 | |
else | |
memory=8192 | |
fi |
This file contains hidden or 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
#include "stdafx.h" | |
#include <iostream> | |
#include <stdlib.h> | |
#include <time.h> | |
struct DataType { | |
int value; | |
}; | |
struct Vector { |
This file contains hidden or 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
#include <iostream> | |
#include <windows.h> | |
#include <stdio.h> | |
#include <tchar.h> | |
#include <string.h> | |
#define MAX_KEY_LENGTH 255 | |
#define MAX_VALUE_NAME 16383 | |
bool isNeedMoreThenOne; |
This file contains hidden or 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
#include <iostream> | |
#include <windows.h> | |
#include <string> | |
using namespace std; | |
BOOL CALLBACK FindAmmy(HWND hwnd, LPARAM lParam); | |
BOOL CALLBACK FindAmmyChilds(HWND hwnd, LPARAM lParam); | |
const char* getAmmyData(); | |
const char* AMMY_WIN_NAME = "Ammyy Admin v3.5"; |
This file contains hidden or 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/python | |
import sys, os | |
import urllib, urllib2 | |
Highlights = { | |
'bash' : ['*.sh','*.bash'], | |
'php' : ['*.php'], | |
'python' : ['*.python'], | |
'rails' : ['*.rb'], | |
'ruby' : ['Gemfile'], | |
'python' : ['*.py'], |
This file contains hidden or 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
// Include the Ruby headers and goodies | |
//#include "ruby.h" | |
#include <xbase64/xbase64.h> | |
#include "ruby.h" | |
#include <iostream> | |
#include <sys/stat.h> | |
#include <map> | |
#include <string> | |
#include <vector> | |
#include <time.h> |
This file contains hidden or 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
// NetFrameworkChecker.cpp: определяет точку входа для консольного приложения. | |
// | |
#include "stdafx.h" | |
#include "NetFrameworkChecker.h" | |
wstringstream logger; | |
bool need_log = true; | |
bool debug = true; |
This file contains hidden or 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
HB_FUNC ( PQ_GET_NOTIFY ) // VAA 07.03.2017 | |
{ | |
const char *clisten = "LISTEN "; | |
PGconn * conn = hb_PGconn_par( 1 ); | |
const char *source = hb_parcx( 2 ); | |
HB_SIZE size = strlen(source); | |
char *channel; |
OlderNewer