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
@ECHO OFF | |
SETLOCAL | |
if [%1]==[] ( | |
echo Vagrant: Homestead | |
echo up uruchamia maszyne wirtualna | |
echo down zatrzymuje maszyne wirtualna | |
echo destroy niszczy maszyne wirtualna | |
echo ssh loguje sie do maszyny poprzez ssh | |
echo conf otwiera plik konfiguracyjny .yaml |
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
alias homestead="homestead.bat" | |
alias hs="homestead" | |
alias code="cd /D/Code/" | |
alias x="exit" | |
alias cls="clear" | |
alias bashrc="subl ~/.bashrc" | |
alias scripts="cd /D/OneDrive/#Tools/Scripts" | |
alias ..="cd .." | |
alias ...="cd ../.." |
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
'use strict'; | |
var gulp = require('gulp'); | |
var sass = require('gulp-sass'); | |
var ts = require('gulp-typescript'); | |
var tsProject = ts.createProject('tsconfig.json', {typescript: require('typescript')}); | |
var paths = { | |
sass: ['./resources/sass/**/*.scss'], | |
ts: ['./resources/app/**/*.ts'], |
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
/* jshint node: true, strict: global */ | |
'use strict'; | |
var gulp = require('gulp'); | |
var minifyJs = require('gulp-minify'); | |
var sass = require('gulp-sass'); | |
var cleanCss = require('gulp-clean-css'); | |
var autoprefix = require('gulp-autoprefixer'); | |
var browserSync = require('browser-sync').create(); |
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
jQuery.fn.textChange = function(callback) { | |
return this.each(function() { | |
var lastentry = ''; | |
$(this).keyup(function(event) { | |
var value = $(this).val(); | |
if (value != lastentry) { | |
if (typeof callback == 'function') | |
callback.call(this); | |
} |
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
// zmienne | |
var canvas, ctx; | |
var clockImage; | |
var startDate; | |
function clear() { | |
ctx.clearRect(0, 0, ctx.canvas.width, ctx.canvas.height); | |
} | |
function drawClock(date, x, y, width, height, city) { |
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
const originalData = [ | |
{ name: 'Bank 1', balance: -50, currency: 'EUR', date: '2012-12-01', image: 'data:image/gif;base64,R0lGODlhPQBEAPeoAJosM//AwO/AwHVYZ/z595kzAP/s7P+goOXMv8+fhw/v739/f+8PD98fH/8mJl+fn/9ZWb8/PzWlwv///6wWGbImAPgTEMImIN9gUFCEm/gDALULDN8PAD6atYdCTX9gUNKlj8wZAKUsAOzZz+UMAOsJAP/Z2ccMDA8PD/95eX5NWvsJCOVNQPtfX/8zM8+QePLl38MGBr8JCP+zs9myn/8GBqwpAP/GxgwJCPny78lzYLgjAJ8vAP9fX/+MjMUcAN8zM/9wcM8ZGcATEL+QePdZWf/29uc/P9cmJu9MTDImIN+/r7+/vz8/P8VNQGNugV8AAF9fX8swMNgTAFlDOICAgPNSUnNWSMQ5MBAQEJE3QPIGAM9AQMqGcG9vb6MhJsEdGM8vLx8fH98AANIWAMuQeL8fABkTEPPQ0OM5OSYdGFl5jo+Pj/+pqcsTE78wMFNGQLYmID4dGPvd3UBAQJmTkP+8vH9QUK+vr8ZWSHpzcJMmILdwcLOGcHRQUHxwcK9PT9DQ0O/v70w5MLypoG8wKOuwsP/g4P/Q0IcwKEswKMl8aJ9fX2xjdOtGRs/Pz+Dg4GImIP8gIH0sKEAwKKmTiKZ8aB/f39Wsl+LFt8dgUE9PT5x5aHBwcP+AgP+WltdgYMyZfyywz78AAAAAAAD///8AAP9mZv///wAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA |
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
const message = 'alamaworek'; | |
const key = 'blablabla'; | |
function encode(message, key) { | |
const shift = key | |
.repeat(Math.ceil(message.length / key.length)) | |
.split('') | |
.map(c => c.charCodeAt(0) - 'a'.charCodeAt(0)); | |
return message |
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
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using static G2.Problem; | |
namespace G2 | |
{ | |
internal static class Algorytm | |
{ | |
private const int WielkośćPopulacji = 50; |
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
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Text; | |
using System.Threading.Tasks; | |
namespace OperatoryKrzyzowania | |
{ | |
class Program | |
{ |
OlderNewer