Skip to content

Instantly share code, notes, and snippets.

View a1ip's full-sized avatar
🎯
Focusing

Philippe Rigovanov a1ip

🎯
Focusing
View GitHub Profile
@a1ip
a1ip / encoding.fish
Last active September 20, 2017 16:16
Encoding commands
iconv -f cp1251 -t utf-8 < file > file.new
head -10 file | iconv -f cp1251 -t utf-8
@a1ip
a1ip / plan_chronological.txt
Last active October 19, 2017 10:28
БИБЛИЯ ЗА ГОД. Чтение Библии в хронологическом порядке https://git.io/plan-chron
БИБЛИЯ ЗА ГОД. Чтение Библии в хронологическом порядке
ЯНВАРЬ
1 Быт. 1, 2, 3
2 Быт. 4, 5, 6, 7
3 Быт. 8, 9, 10, 11
4 Иов 1, 2, 3, 4, 5
5 Иов 6, 7, 8, 9
HANDY ONE-LINERS FOR RUBY November 16, 2005
compiled by David P Thomas <davidpthomas@gmail.com> version 1.0
Latest version of this file can be found at:
http://www.fepus.net/ruby1line.txt
Last Updated: Wed Nov 16 08:35:02 CST 2005
FILE SPACING:

Choices

  1. Install ghc 7.6.3 and Haskell Platform
  2. Install ghc 7.8.2 and Cabal

Option GHC 7.6.3 + Haskell Platform

GHC 7.6.3

Install Ubuntu 12.04 depencies:

@a1ip
a1ip / eloquentjavascript-02-01.js
Last active June 25, 2019 15:12
Solutions for Exercises from Eloquent Javascript http://eloquentjavascript.net/
// Looping a triangle
// http://eloquentjavascript.net/2nd_edition/preview/02_program_structure.html
var s = '';
for (var i=1;i<=7;i++){
s += '#';
console.log(s);
}
@a1ip
a1ip / fizzbuzz.coffee
Created May 31, 2014 15:35
Elegant CoffeeScript FizzBuzz solution from http://rosettacode.org/
for i in [1..100]
console.log(['Fizz' if i % 3 is 0] + ['Buzz' if i % 5 is 0] or i)
@a1ip
a1ip / fizzbuzz.js
Created May 31, 2014 15:42
Elegant JavaScript FizzBuzz solution from http://en.wikipedia.org/wiki/Bizz_buzz
for (var i=1; i<=100; i++) {
var string = '';
if (i % 3 == 0) {
string += 'Fizz';
}
if (i % 5 == 0) {
string += 'Buzz';
}
@a1ip
a1ip / fizzbuzz.rb
Created May 31, 2014 15:45
Elegant Ruby FizzBuzz one-liner from http://rosettacode.org/
1.upto(100) { |i| puts "#{[:Fizz][i%3]}#{[:Buzz][i%5]}"[/.+/m] || i }
@a1ip
a1ip / fizzbuzz.js
Created May 31, 2014 15:49
Sortest JavaScript FizzBuzz one-liner from http://rosettacode.org/
for(i=0;i<100;console.log(++i%15?i%5?i%3?i:f='Fizz':b='Buzz':f+b));