This file contains hidden or 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
import random | |
from random import shuffle | |
def eq(a,b): | |
return 1 if a == b else 0 | |
def not_(a): | |
return 0 if a else 1 | |
def r_bit(): |
This file contains hidden or 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
#!/bin/bash | |
if [ ! -d /root/backups ]; then | |
mkdir /root/backups | |
fi | |
DIR_NAME='/root/backups/'$(date +"%d-%m-%Y__%H_%M") | |
mkdir "$DIR_NAME" | |
echo $DIR_NAME |
This file contains hidden or 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
<?xml version="1.0" encoding="UTF-8"?> | |
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
<plist version="1.0"> | |
<dict> | |
<key>fileTypes</key> | |
<array> | |
<string>src</string> | |
</array> | |
<key>name</key> | |
<string>untitled</string> |
This file contains hidden or 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
{ | |
// версия 1 | |
// операторы, ключевые слова, названия юнитов в определении | |
// константы, комментарии, базовые типы, библиотечные юниты | |
patterns = ( | |
{ name = 'string.quoted.double.slang'; | |
begin = '"'; | |
end = '"'; | |
patterns = ( | |
{ name = 'constant.character.escape.untitled'; |
This file contains hidden or 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
FROM postgres:9.6 | |
RUN DEBIAN_FRONTEND=noninteractive apt-get update \ | |
&& apt-get install -y git \ | |
&& apt-get install -y build-essential \ | |
&& apt-get install -y postgresql-server-dev-9.6 \ | |
&& rm -rf /var/lib/apt/lists/* | |
RUN mkdir -p hunspell \ | |
&& cd hunspell \ |
This file contains hidden or 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
# should be run from "root" dir | |
ARGS=1 | |
E_BADARGS=85 | |
if [ $# -ne "$ARGS" ] | |
then | |
echo "Usage: `basename $0` {cars|bike}" | |
exit $E_BADARGS | |
fi |
This file contains hidden or 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 main | |
import ( | |
"log" | |
"net/http" | |
) | |
var destination string | |
func redirect(w http.ResponseWriter, r *http.Request) { |
This file contains hidden or 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
import logging | |
from os import getenv | |
from dotenv import load_dotenv | |
load_dotenv() | |
from telegram import Update, InlineKeyboardMarkup, InlineKeyboardButton |
This file contains hidden or 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 tactic | |
import "github.com/quasilyte/gophers-and-dragons/game" | |
func ChooseCard(s game.State) game.CardType { | |
return winingTactic(s) | |
} | |
func winingTactic(s game.State) game.CardType { |
This file contains hidden or 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
# Description: Boxstarter Script | |
# | |
# Run this boxstarter by calling the following from an **elevated** command-prompt: | |
# start http://boxstarter.org/package/nr/url?<URL-TO-RAW-GIST> | |
#---- TEMPORARY --- | |
Disable-UAC | |
#--- Windows subsystems/Features --- | |
Set-WindowsExplorerOptions -EnableShowHiddenFilesFoldersDrives -EnableShowProtectedOSFiles -EnableShowFileExtensions |
OlderNewer