Skip to content

Instantly share code, notes, and snippets.

View mignev's full-sized avatar

Marian Ignev mignev

View GitHub Profile
@mignev
mignev / gist:1683387
Created January 26, 2012 15:46
Simple example of webview in appcelerator
// this sets the background color of the master UIView (when there are no windows/tab groups on it)
Titanium.UI.setBackgroundColor('#000');
// create tab group
var tabGroup = Titanium.UI.createTabGroup();
//
// create base UI tab and root window
//
@mignev
mignev / index.html
Created March 25, 2012 15:44
SpineJS JavaScript api fix: Simple example for properties in spinejs models, controllers and etc.
<!DOCTYPE html>
<html>
<head>
<meta charset=utf-8>
<title>App</title>
<meta name="viewport" content="width=device-width; initial-scale=1.0; minimum-scale=1; maximum-scale=1.0; user-scalable=0;"/>
<meta name="apple-mobile-web-app-capable" content="yes" />
<meta name="format-detection" content="telephone=no" />
<link rel="stylesheet" href="/application.css" type="text/css" charset="utf-8">
@mignev
mignev / example.com
Created September 12, 2013 13:19
Django deployment with Nginx and Tornado Web
upstream tornadoFrontends {
server 127.0.0.1:8000;
server 127.0.0.1:8001;
server 127.0.0.1:8002;
server 127.0.0.1:8003;
}
server {
listen 80;
@mignev
mignev / _usage
Created November 25, 2013 14:17 — forked from subosito/_usage
curl https://raw.github.com/gist/3342482/57d1f618104185aa89044f934c4f86cb74e11553/rbenv-openshift.sh | bash
@mignev
mignev / build
Created November 25, 2013 15:10 — forked from sanjmen/build
#!/bin/bash
# This is a simple build script and will be executed on your CI system if
# available. Otherwise it will execute while your application is stopped
# before the deploy step. This script gets executed directly, so it
# could be python, php, ruby, etc.
#
# MEMCACHED SERVER
#
=begin
Jekyll tag to include Markdown text from _includes directory preprocessing with Liquid.
Usage:
{% markdown <filename> %}
=end
module Jekyll
class MarkdownTag < Liquid::Tag
def initialize(tag_name, text, tokens)
super
@text = text.strip
@mignev
mignev / client.rb
Last active December 31, 2015 07:09
Fast rails runner
require 'socket'
# thanks to @mitio
UNIXSocket.open('/tmp/fast.pid') do |fastrails|
fastrails.write ARGV.join(' ')
puts fastrails.read
end
@mignev
mignev / maintenance.html
Created May 7, 2015 16:28
StartApp.bg Custom Maintenance page
<!DOCTYPE html>
<html>
<head>
<title>Maintenance in progress. Please try again in few minutes</title>
<link href='//fonts.googleapis.com/css?family=Ubuntu:300' rel='stylesheet' type='text/css'>
<style type="text/css" />
body {color: #666; text-align: center; font-family: "Ubuntu", "Helvetica Neue", Helvetica, Arial, sans-serif; sans-serif; margin:0; width: 800px; margin: auto; font-size: 14px; }
h1 { font-size: 56px; line-height: 100px; font-weight: normal; color: #456; }
h2 { font-size: 24px; color: #666; line-height: 1.5em; }
h3 { color: #456; font-size: 20px; font-weight: normal; line-height: 28px; }
@mignev
mignev / frontend_job_ad.md
Last active December 2, 2015 17:21
Front-end Gagu Job Ad

Front-end Gagu

MediaHub си търси frontend човек за офиса си в София. Фокусът на компанията е разработка и интеграция на решения за разпространение и визуализиране на видео съдържание.

Много важно!

От особенна важност за позицията е добро познаване по: JavaScript, HTML5 и CSS3.

Ще се радваме ако:

В допълнение познаването на следните продукти и технологии е предимство:

  • Nodejs
  • MongoDB