Skip to content

Instantly share code, notes, and snippets.

View Lotuashvili's full-sized avatar
🏎️
💨

Levan Lotuashvili Lotuashvili

🏎️
💨
View GitHub Profile
@Lotuashvili
Lotuashvili / gulpfile.js
Last active August 29, 2015 14:02
Gulp file for Jade, Stylus, Sass, Javascript (Minify Only) & CoffeeScript. Run npm install to install all required modules
var gulp = require('gulp');
var changed = require('gulp-changed');
var jade = require('gulp-jade');
var stylus = require('gulp-stylus');
var minify = require('gulp-cssmin');
var coffee = require('gulp-coffee');
var uglify = require('gulp-uglify');
var rename = require('gulp-rename');
var connect = require('gulp-connect');
var sass = require('gulp-sass');
@Lotuashvili
Lotuashvili / index.html
Created June 7, 2014 16:58
Simple HTML File With Meta Tags
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en">
<head>
<title>Simple HTML With Meta Tags</title>
<!-- START OF META TAGS -->
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <!-- The meta content type tag is used to declare the character encoding of a website. It’s best to add this piece of information to prevent browsers from guessing the character encoding which can lead to display problems, but it doesn't influence rankings or CTR -->
<meta name=”description” content=”Here goes your site description” /> <!-- This tag used to have a lot more ranking power, but algorithm updates have diminished its effect. It won’t improve your ranking, however, the meta description tag can still be useful because it is used on search engine result pages. -->
<meta name=”keywords” content=”meta tags,search engine optimization” /> <!-- In the meta keywords tag you can store a co
@Lotuashvili
Lotuashvili / Matrix.html
Created June 14, 2014 20:50
Matrix animation in Web with Canvas
<!DOCTYPE html>
<html>
<head>
<title>Matrix - GWSMaster</title>
<meta charset="utf-8">
<style type="text/css">
* {margin: 0; padding: 0;}
body {background: black;}
canvas {display: block;}
</style>
@Lotuashvili
Lotuashvili / Stylus.tmLanguage
Created June 21, 2014 12:24
Stylus Syntax For Submile Text
<?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>styl</string>
<string>stylus</string>
</array>
<key>name</key>
@Lotuashvili
Lotuashvili / Jade.tmLanguage
Created June 21, 2014 12:26
Jade Syntax For Sublime Text
<?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>jade</string>
</array>
<key>keyEquivalent</key>
<string>^~J</string>
@Lotuashvili
Lotuashvili / filterYoutubeURL.php
Created October 5, 2014 12:59
filterYoutubeURL
function filterYoutubeURL($url) {
if (strpos($url, 'watch?v=') != false) {
$url = explode('=', $url);
if (strpos($url[1], '&') != false) {
$url = explode('&', $url[1]);
return $url[0];
} else return $url[1];
} else if (strpos($url, 'youtu.be/') != false) {
$url = preg_replace('/http:\/\/youtu.be\//', '', $url);
$url = preg_replace('/https:\/\/youtu.be\//', '', $url);
@Lotuashvili
Lotuashvili / connect.php
Created November 17, 2014 19:23
Set Mysql Connection Encoding to UTF-8
// Run this after connection
mysql_query("SET character_set_results = 'utf8', character_set_client = 'utf8', character_set_connection = 'utf8', character_set_database = 'utf8', character_set_server = 'utf8'")
@Lotuashvili
Lotuashvili / quadratic.cpp
Created November 20, 2014 16:45
კვადრატული განტოლება (C++)
//
// main.cpp
// diskriminant
//
// Created by GWSMaster on 08.10.14.
// Copyright (c) 2014 GWSMaster. All rights reserved.
//
#include <iostream>
#include <cmath>
@Lotuashvili
Lotuashvili / amocana.cpp
Created November 21, 2014 12:09
ამოცანა 1
//
// amocana1
//
// Created by GWSMaster on 08.10.14.
// Copyright (c) 2014 GWSMaster. All rights reserved.
//
#include <iostream>
using namespace std;
@Lotuashvili
Lotuashvili / quadratic.java
Created December 2, 2014 20:04
კვადრატული განტოლება (Java)
import java.util.Scanner;
public class Quadratic {
public static void main(String[] args) {
double a,b,c,d,x1,x2;
Scanner scanner = new Scanner(System.in);
System.out.print("Sheiyvanet a koeficienti: ");
a = scanner.nextDouble();
System.out.print("Sheiyvanet b koeficienti: ");