Skip to content

Instantly share code, notes, and snippets.

View Pan-Maciek's full-sized avatar
🤫

Maciej Kozieja Pan-Maciek

🤫
  • Qualtrics
  • Kraków
View GitHub Profile
@Pan-Maciek
Pan-Maciek / babka.js
Last active September 17, 2016 19:04
var powiekszenie = 15
$(document).ready(function () {
$("#przesuwanie3").on("input", function () {
powiekszenie = parseInt($("#przesuwanie3").val())
$("#mapa").gmap3({
map: {
options: {
zoom: powiekszenie
@Pan-Maciek
Pan-Maciek / ania.html
Last active September 17, 2016 20:01
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta charset="utf-8"/>
<title>kółko i krzyżyk</title>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.12.4/jquery.min.js"></script>
<script>
var rozmiar = 3
var ruch = "x"
var kolor = "black"
var fenway = new google.maps.LatLng(42.345573, -71.098326)
$("#map").gmap3({
map: {
options: {
center:[50.0469245, 19.9208745],
zoom: 13
},
streetviewpanorama: {
options: {
container: $(document.createElement("div")).addClass("googlemap").insertAfter($("#draw")),
//http://wklej.to/viZxk
var rozmiarPlanszy = 10;
var tablicaStatkow = new Array(rozmiarPlanszy).fill(0)
tablicaStatkow[0] = new Array(rozmiarPlanszy).fill(0)
document.getElementById("plansza").style.width=32*rozmiarPlanszy+"px";
//GENERUJE PLANSZE
for(i=0;i<rozmiarPlanszy;i++){
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" lang="pl">
<head>
<title>T: Project</title>
<meta charset="utf-8">
<script src="lib/jquery-3.1.0.min.js"></script>
<script src="lib/gmap3.min.js"></script>
<script type="text/javascript" src="https://maps.googleapis.com/maps/api/js?key=AIzaSyDsbtBhmgCISJQGwNuoGAIXQOOdrhBj-vI"></script>
<script>
function saveToServer(nazwa) {
$.ajax({
type: "POST",
url: window.location.href.replace("index.html", "") + "Server.aspx",
data: {
operation: "save",
data: JSON.stringify({
nazwa: nazwa,
kolor: color,
time: new Date(),
<html>
<head>
<link rel="stylesheet" href="style.css">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="css/font-awesome.min.css">
</head>
<body>
<div id="topBar">
function addSocketWrapper() {
if("undefined" != typeof WebSocket) {
var a = parseInt(localStorage.simulatedLatency) / 2;
if(a > 0) {
var b = WebSocket;
WrappedWebSocket = function(c) {
var d = new b(c);
d.binaryType = "arraybuffer", this.onclose = function() {}, this.onopen = function() {}, this.onmessage = function() {};
var e = this;
d.onclose = function() {
async Task Delay(int t) {
await Task.Delay(t);
}
private async void btClick(object sender, EventArgs e) {
await Delay(1000); //czekam nie blokując wątku
MessageBox.Show("DONE");
}
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace macierze
{
// Uwagi ogólne