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 <vector> | |
using namespace std; | |
void trace(int n) | |
{ | |
int nmem = n; | |
vector<int> M; | |
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> | |
using namespace std; | |
#define c 261 | |
#define d 294 | |
#define e 329 | |
#define f 349 | |
#define g 391 |
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
function get_browser_info(){ | |
var ua=navigator.userAgent,tem,M=ua.match(/(opera|chrome|safari|firefox|msie|trident(?=\/))\/?\s*(\d+)/i) || []; | |
//console.log(M[0]+" "+M[1]); | |
if(/trident/i.test(M[1])){ | |
tem=/\brv[ :]+(\d+)/g.exec(ua) || []; | |
return {name:'IE',version:(tem[1]||'')}; | |
} | |
if(M[1]==='Chrome'){ | |
tem=ua.match(/\bOPR\/(\d+)/) | |
if(tem!=null) {return {name:'Opera', version:tem[1], chromeversion: M[2]};} |
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
<?php | |
$api_id = 1; | |
$api_secret = "APP_SERVICE_TOKEN"; | |
$message_text = "Test"; | |
$current_users_list = array(); | |
$current_offset = 0; | |
function Send() |
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
using UnityEngine; | |
using System.Collections; | |
public class IK : MonoBehaviour { | |
public Vector3 Target = new Vector3(-8, 0, 0); | |
public Vector3 BendTarget = new Vector3(-4, 0, 3); | |
public float Transition = 1f; | |
public GameObject[] Members = new GameObject[3]; |
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
<?php | |
$image = imagecreatetruecolor(180,40); | |
// Пишет текст и применяет размытие к изображению | |
imagestring($image, 5, 10, 8, 'Gaussian Blur Text', 0x00ff00); | |
$gaussian = array(array(1.0, 2.0, 1.0), array(2.0, 4.0, 2.0), array(1.0, 2.0, 1.0)); | |
imageconvolution($image, $gaussian, 16, 0); | |
// Переписывает текст для сравнения | |
imagestring($image, 5, 10, 18, 'Gaussian Blur Text', 0x00ff00); |
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
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Text; | |
using System.Threading.Tasks; | |
namespace TestTestTest | |
{ | |
class Program | |
{ |
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
// From GeoEngine scripts | |
using UnityEngine; | |
using System.Collections; | |
using System.Collections.Generic; | |
[RequireComponent(typeof(MeshFilter))] | |
[RequireComponent(typeof(MeshCollider))] | |
public class Landscape : MonoBehaviour { |
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
Web = new function () { | |
function CreateXMLHTTP() { // кроссбраузерный костыль на случай атомной войны (со всякими IE 6) | |
var xmlhttp; | |
try { | |
xmlhttp = new ActiveXObject("Msxml2.XMLHTTP"); | |
} | |
catch (e) { | |
try { |
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
document.body.innerHTML = "<div id='iii'></div>" + document.body.innerHTML; | |
var iii = document.getElementById("iii"); | |
var table = document.getElementsByTagName("table")[0]; | |
table.style.display = "none"; | |
var dom = document.getElementsByTagName("a"); | |
var count = 0; | |
var interval = setInterval(function(){ |