Skip to content

Instantly share code, notes, and snippets.

View biggianteye's full-sized avatar

Burhan Ali biggianteye

View GitHub Profile
@kylebarrow
kylebarrow / example.html
Created June 23, 2011 06:30
Prevent links in standalone web apps opening Mobile Safari
<!DOCTYPE html>
<head>
<title>Stay Standalone</title>
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=no">
<script src="stay_standalone.js" type="text/javascript"></script>
</head>
<body>
<ul>
<li><a href="http://google.com/">Remote Link (Google)</a></li>
@mnapoli
mnapoli / behat-reference.feature
Last active February 12, 2024 10:54
Behat Mink reference
# Given
Given I am on [the] homepage
Given I am on "url"
# When
When I go to [the] homepage
When I go to "url"
When I reload the page
@danielpaul
danielpaul / socket.rb
Created August 28, 2019 22:43
Simple Ruby TCP Server
# ruby socket.rb
require 'socket' # Sockets are in standard library
class Server
def initialize(socket_port)
@server_socket = TCPServer.new(socket_port)
puts 'Started server.........'
end