Skip to content

Instantly share code, notes, and snippets.

View YaroslavW's full-sized avatar

Yaroslav YaroslavW

View GitHub Profile
@webann
webann / Отключение анимации Animate.css в мобильной версии
Created November 8, 2017 15:16
Отключение анимации на малых экранах CSS
/* 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*/
<?php
/********* универсальное решение ****************/
function sendRequest($url, array $params = [], $post = false){
$curl = curl_init();
$headers = array(
'Content-Type: application/json-patch+json',
'accept: application/json',
);
if ($post == true) {
@max-frai
max-frai / find_and_remove.js
Created May 11, 2017 21:41
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); \
@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>
anonymous
anonymous / index.html
Created August 16, 2016 17:58
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>
# Logs
logs
*.log
npm-debug.log*
# Runtime data
pids
*.pid
*.seed
@debashisbarman
debashisbarman / README.md
Last active February 15, 2024 02:19
A boilerplate 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

@codedokode
codedokode / js-task-1.md
Last active March 4, 2024 12:35
Задания на яваскрипт (простые)
@phirework
phirework / map.html
Created February 12, 2013 18:16
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>
@hectorcorrea
hectorcorrea / webserver.js
Last active November 17, 2022 19:54
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;