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
<a href="/" role="banner"><img src="logo.png" alt="" />Блог Васи Пупкина</a> | |
<nav role="navigation"> | |
<ul> | |
<li><a href="/">Главная</a></li> | |
<li><a href="/news">Новости</a></li> | |
<li><a href="/contacts">Контакты</a></li> | |
</ul> | |
</nav> | |
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
$background: #f9f9f9; | |
$button-background: #d3d8dd; | |
$footer-background: #373d44; | |
$main-color: #04bf9d; | |
$about-us-icon-background: #373d44; | |
$text-color: #bbbaba; | |
$list-first-color: #bbbaba; | |
$list-second-color: #fafafa; | |
/// Move to "_reset.scss" |
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 fs = require('fs'); | |
var src = 'stylesheets/'; | |
var dist = 'dist'; | |
var walk = (dir, callback) => { | |
var results = []; | |
fs.readdir(dir, (err, list) => { | |
if (err) { |
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
# This is Git's per-user configuration file. | |
[alias] | |
b = "!git branch" | |
c = "!git commit -m" # regular shorthand | |
ca = "!git commit --amend --no-edit" # add to stage again | |
ch = "!git checkout" | |
cm = "!git add -A && git commit -m" | |
ds = "!git diff --staged -w" | |
lg = "!git log --pretty=format:'%C(bold red)%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold red)<%an>%Creset' --abbrev-commit" | |
ll = "!git lg -5 --stat" |
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.Threading; | |
using System.Threading.Tasks; | |
namespace Async | |
{ | |
class Program | |
{ | |
static void Main(string[] args) | |
{ |
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
/// <summary> | |
/// Helper method to determin if invoke required, if so will rerun method on correct thread. | |
/// if not do nothing. | |
/// </summary> | |
/// <param name="c">Control that might require invoking</param> | |
/// <param name="a">action to preform on control thread if so.</param> | |
/// <returns>true if invoke required</returns> | |
public bool ControlInvokeRequired(Control c, System.Action a) | |
{ | |
if (c.InvokeRequired) |
This file has been truncated, but you can view the full file.
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
[ | |
{ | |
"Email": "Eric.Torp@deanna.us", | |
"Full Name": "Sadye Lemke", | |
"Country": "Japan", | |
"User Id": 0, | |
"Created At": "1993-06-25T17:22:34.026Z" | |
}, | |
{ | |
"Email": "Jarrett@sonny.me", |
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"; | |
let dbx = new Dropbox({ | |
accessToken: ACCESS_TOKEN | |
}); | |
let result = dbx.filesListFolder({ path: DROPBOX_PATH }) | |
.then(res => res.entries) | |
.then(entries => entries.map(entry => | |
dbx.filesGetTemporaryLink({ path: entry.path_lower }))) |
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
#include <iostream> | |
#include <vector> | |
class Cattle { | |
public: | |
virtual void info() {}; | |
virtual ~Cattle() {}; | |
}; | |
class Cow : public Cattle { |
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
#include <iostream> | |
#include <cstdio> | |
#include <cmath> | |
using namespace std; | |
struct Pair { | |
double a; | |
double b; | |
}; |