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
| # in ~/.config/fish/config.fish | |
| # Load the default rubies | |
| if test -z $rvm_bin_path | |
| exec bash --login -c "exec fish" | |
| end |
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
| var gulp = require('gulp'), | |
| express = require('express'), | |
| sass = require('gulp-sass'), | |
| spawn = require('child_process').spawn, | |
| livereload = require('gulp-livereload'); | |
| var EXPRESS_PORT = 4000; | |
| var EXPRESS_ROOT = '_site/' | |
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
| find . -type f -name '*.js' | while read f; do echo "grinding $f to ${f/.js/.coffee} "; js2coffee "$f" > "${f/.js/.coffee}"; done | |
| find . -type f -name '*.js' | while read f; do echo "deleting $f "; rm $f; do |
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
| {* Задание 27 № 6202. По каналу связи передаются данные в виде последовательности | |
| положительных целых чисел. Количество чисел заранее неизвестно, но не менее двух, | |
| признаком конца данных считается число 0. После данных передаётся контрольное значение. | |
| Оно равно такому максимально возможному произведению двух чисел из переданного набора, | |
| которое делится на 7, но не делится на 49. Если такое произведение получить нельзя, | |
| контрольное значение считается равным 1. Напишите эффективную, в том числе по памяти, | |
| программу, которая будет моделировать процесс приёма данных. Программа должна ввести | |
| все числа и контрольное значение и напечатать краткий отчёт, включающий количество | |
| принятых чисел, принятое контрольное значение, вычисленное контрольное значение и | |
| вывод о совпадении значений. |
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
| #include <stdio.h> | |
| int main() { | |
| int n, i; | |
| FILE *in, *out; | |
| in = fopen("a.in", "r"); | |
| out = fopen("a.out", "w"); | |
| fscanf(in, "%d", &n); | |
| for (i = 1; i <= n; i++) { |
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
| python3 -c "while 1:import random;print(random.choice('|| __'), end='')" |
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/sh | |
| ### BEGIN INIT INFO | |
| # Provides: tightvncserver | |
| # Required-Start: $syslog | |
| # Required-Stop: $syslog | |
| # Default-Start: 2 3 4 5 | |
| # Default-Stop: 0 1 6 | |
| # Short-Description: vnc server | |
| # Description: | |
| # |