Skip to content

Instantly share code, notes, and snippets.

View Juriy's full-sized avatar

Juriy Bura Juriy

View GitHub Profile
// typewriter effect
// After Effects script
// based on work of @MotionHub and @Wesley Wiyadi
// set this variables to configure
const blinkSpeed = 2; // times per second
const speed = 15; // how fast characters will appear
const startAt = 0; // delay to start an effect
const cursorCharacter = '|'; // character to use as a cursor
#include json2.js
// [+] Learn how to change text
// [+] How to save JPEG
// [+] How to read JSON
(function main() {
var lessons = loadJson('lessons.json');
@Juriy
Juriy / gist:7785950
Created December 4, 2013 11:14
watch config
watch: {
scripts: {
files: ['**/*.js'],
tasks: ["default"],
options: {
spawn: false
}
}
}
@Juriy
Juriy / mailer.js
Created December 2, 2013 12:12
Mailer example
var express = require('express');
var nodemailer = require('nodemailer');
var app = express();
app.set('views', __dirname + '/views');
app.set('view engine', 'ejs');
app.use(function(err, req, res, next) {
console.log("ERROR " + err);
res.send("<b>Sorry, we're fixing that already");
@Juriy
Juriy / main.js
Last active December 30, 2015 00:09
Views example in node.js
var express = require('express');
var app = express();
app.set('views', __dirname + '/views');
app.set('view engine', 'ejs');
app.use(function(req, res, next) {
console.log("Serving " + req.method + ":"
+ req.url);
@Juriy
Juriy / gist:7673488
Created November 27, 2013 10:16
POC test
var stdin = process.stdin;
var map = [
" ┌───────┐ ",
" ┌───────┐ │·······│ ",
" │·······│ │·······│ ",
" │·······│ │·······│ ",
" │········░░░░░········│ ",
" │·······│ │·······│ ",
" │·······│ │·······│ ",
@Juriy
Juriy / example.js
Created November 27, 2013 03:39
This is an example for Node.js Boot Camp training for EPAM Systems. Day 1.
// ESC[#A moves cursor up # lines
// ESC[#B moves cursor down # lines
// ESC[#C moves cursor right # spaces
// ESC[#D moves cursor left # spaces
// Script can be written as is
process.stdout.write("\u001b[2J\u001b[0;0H");
process.stdout.write("\u001b[0;30m");
process.stdout.write("Hello there\n");
@Juriy
Juriy / gist:6590848
Created September 17, 2013 06:52
Sample account
package com.juriy.threads;
/**
* @author Juriy Bura
*/
public class Account {
private int number;
private int amount;