Skip to content

Instantly share code, notes, and snippets.

Márton Salomváry salomvary

Block or report user

Report or block salomvary

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View xhtml-transitional.html
<!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">
<head>
<title></title>
<meta http-equiv="Content-type" content="text/html;charset=utf-8"/>
</head>
<body>
</body>
</html>
@salomvary
salomvary / castro.html
Created May 17, 2011
get Castro Bistro (Budapest) daily menu
View castro.html
<!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">
<head>
<title></title>
<meta http-equiv="Content-type" content="text/html;charset=utf-8"/>
</head>
<body>
<pre id="out"></pre>
<script src="http://connect.facebook.net/en_US/all.js"></script>
@salomvary
salomvary / views.xml
Created Jun 14, 2011
views gadget test
View views.xml
<?xml version="1.0" encoding="UTF-8" ?>
<Module>
<ModulePrefs title="views test"
author="Gipsz Jakab"
author_email="noreply@iwiw.hu">
<Require feature="opensocial-0.8" />
<Require feature="views" />
</ModulePrefs>
<Content type="html" view="canvas" quirks="false">
<![CDATA[
View fiddle.response.html
<!DOCTYPE html>
<html>
<head>
<title>echo.html</title>
</head>
<body>
<script>
document.body.innerHTML = decodeURIComponent(window.location.search);
</script>
</body>
View app.build.js
({
appDir: '.',
baseUrl: './',
dir: '../build/',
optimize: 'none',
modules: [
{
name: 'one',
excludeShallow: ['four', 'five']
},
@salomvary
salomvary / html5.html
Created Nov 9, 2011
minimal html5 boilerplate
View html5.html
<!doctype html>
<html>
<head>
<meta charset="utf-8"/>
<title></title>
<!--[if lt IE 9]>
<script src="//html5shim.googlecode.com/svn/trunk/html5.js"></script>
<![endif]-->
</head>
<body>
@salomvary
salomvary / applestore.scala
Created Nov 29, 2011
check iPhone availability with Selenium ;)
View applestore.scala
import org.openqa.selenium._
import org.openqa.selenium.support.ui._
import org.openqa.selenium.chrome.ChromeDriver
import org.openqa.selenium.firefox.FirefoxDriver
import org.openqa.selenium.htmlunit.HtmlUnitDriver
import org.openqa.selenium.remote.DesiredCapabilities
import scala.collection.JavaConversions._
import scala.actors.Actor._
object Available {
View ngrep.sh
sudo ngrep -W byline -d lo0 port 3000
View timezones.rb
require 'active_support'
require 'json'
puts(
JSON.pretty_generate(
ActiveSupport::TimeZone.all.map do |tz|
{
:id => tz.tzinfo.identifier,
:name => tz.name,
:utc_offset => tz.utc_offset
View mapper.scala
import com.fasterxml.jackson.core.JsonGenerator
import com.fasterxml.jackson.databind.ObjectMapper
import com.fasterxml.jackson.module.scala.DefaultScalaModule
import scala.collection.JavaConversions._
val mapper = new ObjectMapper()
mapper.registerModule(DefaultScalaModule)
mapper.configure(JsonGenerator.Feature.ESCAPE_NON_ASCII, true)
mapper.readValue("""{"bar":{"title":"hello"}}""", classOf[Map[String, Any]])
You can’t perform that action at this time.