Skip to content

Instantly share code, notes, and snippets.

View aramboyajyan's full-sized avatar

Aram Boyajyan aramboyajyan

View GitHub Profile
@aramboyajyan
aramboyajyan / JS
Last active December 11, 2015 22:08 — forked from jakeonrails/Ruby Notepad Bookmarklet
Code editor bookmarklets. Just copy the code and paste it in the browser URL. It will load ACE editor with the mode you choose for the language.
data:text/html, <style type="text/css">#e{position:absolute;top:0;right:0;bottom:0;left:0;}</style><div id="e"></div><script src="http://d1n0x3qji82z53.cloudfront.net/src-min-noconflict/ace.js" type="text/javascript" charset="utf-8"></script><script>var e=ace.edit("e");e.setTheme("ace/theme/monokai");e.getSession().setMode("ace/mode/javascript");</script>
@aramboyajyan
aramboyajyan / gist:4744679
Last active December 12, 2015 08:29
Browser window for typing
data:text/html, <textarea style="font-size: 1.2em; width: 100%; height: 100%; font-family: Calibri; border: none; outline: none" autofocus />
@aramboyajyan
aramboyajyan / index.html
Created June 15, 2013 08:11
Empty HTML5 template with shiv and normalize CSS included.
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Title</title>
<!--[if lt IE 9]><script src="//html5shiv.googlecode.com/svn/trunk/html5.js"></script><![endif]-->
<link type="text/css" rel="stylesheet" href="//necolas.github.com/normalize.css/2.0.1/normalize.css" />
</head>
<body>
Content
@aramboyajyan
aramboyajyan / drupal6.info
Created June 15, 2013 08:13
Drupal info files for custom modules
; ------------------------------------------------------------------------------
; Module created by Topsitemakers.com
; http://www.topsitemakers.com
; ------------------------------------------------------------------------------
; ------------------------------------------------------------------------------
; Custom created module for [website] website
; ------------------------------------------------------------------------------
name = Blank
description = Blank custom module.
@aramboyajyan
aramboyajyan / new_gist_file
Created June 21, 2013 11:41
Angular, Bootstrap and Lodash
<!DOCTYPE html>
<html ng-app="app">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Title</title>
<!--[if lt IE 9]><script src="//html5shiv.googlecode.com/svn/trunk/html5.js"></script><![endif]-->
<link type="text/css" rel="stylesheet" href="//cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/2.3.2/css/bootstrap.min.css" />
</head>
<body>
@aramboyajyan
aramboyajyan / tags
Created July 11, 2013 09:45
Mobile devices HTML tags
<meta name="viewport" content="initial-scale=1.0, user-scalable=0, maximum-scale=1.0" />
<meta name="apple-mobile-web-app-status-bar-style" content="black" />
<meta name="apple-mobile-web-app-capable" content="yes"/>
<meta name="apple-touch-fullscreen" content="yes"/>
@aramboyajyan
aramboyajyan / style.css
Created July 11, 2013 09:59
Basic responsive CSS
/**
* @file
* Main responsive stylesheet file.
*
* Created by: Topsitemakers
* http://www.topsitemakers.com/
*/
@aramboyajyan
aramboyajyan / web.config
Created July 19, 2013 10:11
Web.config redirect to another URL.
<?xml version="1.0" encoding="UTF-8"?>
<configuration>
<system.webServer>
<httpRedirect enabled="true" destination="http://www.example.com/" />
</system.webServer>
</configuration>
@aramboyajyan
aramboyajyan / btsync.config
Created July 22, 2013 08:18
BTSync default configuration
{
"device_name": "My Sync Device",
"listening_port" : 0, // 0 - randomize port
/* storage_path dir contains auxilliary app files
if no storage_path field: .sync dir created in the directory
where binary is located.
otherwise user-defined directory will be used
*/
"storage_path" : "/home/user/.sync",
@aramboyajyan
aramboyajyan / states
Created July 27, 2013 07:17
Drupal list of US states
AL|Alabama
AK|Alaska
AZ|Arizona
AR|Arkansas
CA|California
CO|Colorado
CT|Connecticut
DE|Delaware
DC|District Of Columbia
FL|Florida