Skip to content

Instantly share code, notes, and snippets.

@mxpaul
mxpaul / bad.go
Created June 2, 2021 14:22
bad code for review
package bad
import (
"strings"
"strconv"
)
func startWith(in, test string) bool {
if len(test) > len(in) {
return false
@mxpaul
mxpaul / main.c
Created May 6, 2020 10:21
gist usage example - prog6
/*
\n Новая строка
\a Звуковое оповещение (через динамик компьютера)
\b Возврат каретки на один символ (Backspace)
\t Табуляция
\\ Вывод символа «\» (обратный слэш)
\' Вывод апострофа (одинарной кавычки)
\" Вывод двойной кавычки
*/
#include <stdio.h>
@mxpaul
mxpaul / gist:f2168f5c951306a06ef833efa0eb56ce
Created July 6, 2018 11:46
truffle config example with mocha --grep option support
//require('babel-register');
require('babel-register')({
ignore: /node_modules\/(?!openzeppelin-solidity)/
});
require('babel-polyfill');
// -------------------------------------------------------------------
// Emulate mocha --grep option to run only matching tests
let mochaConf = {}; // Passed as module.exports.mocha
// -------------------------------------------------------------------

Keybase proof

I hereby claim:

  • I am mxpaul on github.
  • I am mxpaul (https://keybase.io/mxpaul) on keybase.
  • I have a public key ASD7o3dyqvdpwiPJS6J72Arj0zBlIzNQ63R7uKVTfPXenwo

To claim this, I am signing this object: