Skip to content

Instantly share code, notes, and snippets.

View YaroslavW's full-sized avatar

Yaroslav YaroslavW

View GitHub Profile
@YaroslavW
YaroslavW / webserver.js
Created September 30, 2018 12:16 — forked from hectorcorrea/webserver.js
web server in node.js
// A very basic web server in node.js
// Stolen from: Node.js for Front-End Developers by Garann Means (p. 9-10)
var port = 8000;
var serverUrl = "127.0.0.1";
var http = require("http");
var path = require("path");
var fs = require("fs");
var checkMimeType = true;
# Logs
logs
*.log
npm-debug.log*
# Runtime data
pids
*.pid
*.seed
/* Small Devices, Tablets */
@media only screen and (max-width : 768px) {
.animated {
/*CSS transitions*/
-o-transition-property: none !important;
-moz-transition-property: none !important;
-ms-transition-property: none !important;
-webkit-transition-property: none !important;
transition-property: none !important;
/*CSS transforms*/
@YaroslavW
YaroslavW / find_and_remove.js
Created March 20, 2018 22:09 — forked from max-frai/find_and_remove.js
Find and remove inactive facebook friends & bots
var accountTag = 'own_remove_account_tag';
var css = " \
.own_popup { \
width: 50%; min-width: 676px; height: 80%; padding: 15px; \
background: white; border: 1px solid #eee; border-radius: 15px; \
z-index: 999999; position: fixed; margin: auto; \
top: 50px; left: 0; right: 0; \
-webkit-box-shadow: 0px 3px 38px 0px rgba(50, 50, 50, 0.32); \
-moz-box-shadow: 0px 3px 38px 0px rgba(50, 50, 50, 0.32); \
box-shadow: 0px 3px 38px 0px rgba(50, 50, 50, 0.32); \
<?php
/**************************** простые гет запросы **********************/
/***********
отправить простой get запрос
************/
function get_curl_go($url){
$curl = curl_init();
curl_setopt($curl, CURLOPT_URL, $url);
curl_setopt($curl, CURLOPT_RETURNTRANSFER,true);
@YaroslavW
YaroslavW / map.html
Created December 13, 2017 20:56 — forked from phirework/map.html
Create a Google map using JSON data with check-box filtering for categories. Map data set-up: name, url, place (address), ltt (latitude), lgt (longitude), cat (category). Set up custom icons that correspond to the name of each category in PNG format. Sample: http://dev.phirephoenix.com/map/maps.html
<div id="map" style="width: 550px; height: 450px"></div>
<form action="#">
Eat: <input type="checkbox" id="eatbox" onclick="boxclick(this,'eat')" /> &nbsp;&nbsp;
Stay: <input type="checkbox" id="staybox" onclick="boxclick(this,'stay')" /> &nbsp;&nbsp;
Shop: <input type="checkbox" id="shopbox" onclick="boxclick(this,'shop')" />&nbsp;&nbsp;
Play: <input type="checkbox" id="playbox" onclick="boxclick(this,'play')" />&nbsp;&nbsp;
Community: <input type="checkbox" id="communitybox" onclick="boxclick(this,'community')" /><br />
</form>
@YaroslavW
YaroslavW / README.md
Created March 1, 2017 22:10 — forked from debashisbarman/README.md
A Twitter bot that can retweet in response to the tweets matching particluar keyword (https://goo.gl/4whEIt)

#Creating a Twitter bot with Node.js Learn how you can create your own Twitter bot using Node.js and the new Twitter API. The bot will auto retweet in response to tweets with some particular hashtags. (https://goo.gl/4whEIt)

##Tools we need Here are the tools we’ll be using to create the bot — 

  • Node.js installed in your machine
  • A registered Twitter account

Create a Twitter application

@YaroslavW
YaroslavW / index.html
Created February 13, 2017 06:41 — forked from anonymous/index.html
LandingPage(for change)
<body>
<div class="container">
<div id="myHead">
<div id="#menu"> <div class="text-center">
<ul class="list-inline myMenu">
<li><a href="#myHead">Home</a></li>
<li><a href="#aboutMe">About me</a></li>
<li><a href="#myPort">Portfolio</a></li>
<li><a href="#myCont">Contacts</a></li>
</ul></div></div>
@YaroslavW
YaroslavW / index.html
Created February 12, 2017 08:41 — forked from anonymous/index.html
Twitchtv JSON API
<link href="https://fonts.googleapis.com/css?family=Lato" rel="stylesheet">
<div class="row">
<div class="col-md-6 col-md-offset-3">
<div class="animated bounceIn">
<div class="header">
<h1 class="title"> Twitch TV Streamers</h1>
<nav class="navbar">
<div class="container-fluid">
<ul class="nav navbar-nav">
<li><a class="navtext all" type="button">All</a></li>
@YaroslavW
YaroslavW / index.html
Created August 16, 2016 18:00 — forked from anonymous/index.html
LandingPage(pre)
<body>
<div id="myHead">
<div id="#menu"> <div class="text-center">
<ul class="list-inline myMenu">
<li><a href="#myHead">Home<a></li>
<li><a href="#aboutMe">About me</a></li>
<li><a href="#myPort">Portfolio</a></li>
<li><a href="#myCont">Conact</a></li>
</ul></div></div>
<h1 class="text-center">WMG Web Design Studio<h1>