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 fs = require('fs'); | |
const path = require('path'); | |
const file = path.resolve('./node_modules/babel-preset-react-app/create.js'); | |
var text = fs.readFileSync(file, 'utf8'); | |
if (!text.includes('babel-plugin-relay')) { | |
if (text.includes("require('babel-plugin-macros'),")) { | |
text = text.replace( | |
"require('babel-plugin-macros'),", |
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
package gelflog15 | |
import ( | |
"os" | |
"strconv" | |
"strings" | |
"gopkg.in/inconshreveable/log15.v2" | |
"gopkg.in/Graylog2/go-gelf.v2/gelf" | |
) |
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; | |
using Microsoft.Exchange.WebServices.Data; | |
using System.Net; | |
using System.Web; | |
using System.Net.Security; |
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
//: Playground - noun: a place where people can play | |
import UIKit | |
protocol PaginatedDataStateProtocol { | |
var items: [NSObject] { get set } | |
var page: Int { get set } | |
var isFetching: Bool { get set } |
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
__________________________________________________________ | |
onAccept(value) { | |
to do smth with value | |
} | |
this.getValue = answerFunc | |
( | |
<ApplicationForm data={_data} handler={[['text', handler]]} getMeYourGetValueFunc={saveGetValueFunc}> | |
<Buttons> |
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
# setup color variables | |
color_is_on= | |
color_red= | |
color_green= | |
color_yellow= | |
color_blue= | |
color_white= | |
color_gray= | |
color_bg_red= | |
color_off= |
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
# Русский перевод для https://github.com/plataformatec/devise/tree/v3.2.4 | |
# Другие переводы на http://github.com/plataformatec/devise/wiki/I18n | |
ru: | |
devise: | |
confirmations: | |
confirmed: "Ваша учётная запись подтверждена." | |
send_instructions: "В течение нескольких минут Вы получите письмо с инструкциями по подтверждению Вашей учётной записи." | |
send_paranoid_instructions: "Если Ваш адрес email есть в нашей базе данных, то в течение нескольких минут Вы получите письмо с инструкциями по подтверждению вашей учётной записи." | |
failure: |
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
require "mini_magick" | |
module MiniMagick | |
class Image | |
def get_dominant_color | |
color = run_command("convert", path, "-format", "%c\n", "-colors", 1, "-depth", 8, "histogram:info:").split(' '); | |
# color = " 1764000: (208,195,161) #D0C3A1 srgb(208,195,161)\n\n" | |
{ | |
hex: color[2], | |
rgb: color[1][1..-2].split(',') |
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
var numberInPage1 = 7; //Number of questions in Page 1 | |
var numberInPage2 = 6; | |
var numberInPage3 = 7; | |
var parsedColor = '#ff0000' | |
// Define a custom Paragraph style. | |
var parStyle = {}; | |
parStyle[DocumentApp.Attribute.HORIZONTAL_ALIGNMENT] | |
= DocumentApp.HorizontalAlignment.CENTER; |