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
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 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 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; | |
}; |
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 getErrorRank = err => { | |
let rankCounter = 0; | |
let ranks = new Array(8).fill().map((item, i) => 1 / Math.pow(10, i)).slice(1); | |
for (let i = 0; i < ranks.length; i++) { | |
if (err < ranks[i]) { | |
rankCounter++; | |
} else { |
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
function isSheetExist(sheetName) { | |
return SpreadsheetApp.getActiveSpreadsheet().getSheetByName(sheetName) != null; | |
} | |
function formResponseFilter(e) { | |
if (!e) throw new Error("Please go the Run menu and choose Initialize"); | |
try { | |
var ss = SpreadsheetApp.getActiveSpreadsheet(); | |
var base = ss.getSheets()[0]; | |
var sheet = null; |