View embed
<iframe frameborder="0" scrolling="no" marginheight="0" marginwidth="0" src="http://maps.google.com/maps?hl=ru&ie=UTF8&output=embed&q={address}"></iframe> |
View gist:934761
<!DOCTYPE html> | |
<!-- Helpful things to keep in your <head/> | |
// Brian Blakely, 360i | |
// http://twitter.com/brianblakely/ | |
--> | |
<head> | |
<!-- According to Heather Champ, former community manager at flickr, | |
you should not allow search engines to index your "Contact Us" |
View LICENSE.txt
Copyright (c) 2011 Jed Schmidt, http://jed.is | |
Permission is hereby granted, free of charge, to any person obtaining | |
a copy of this software and associated documentation files (the | |
"Software"), to deal in the Software without restriction, including | |
without limitation the rights to use, copy, modify, merge, publish, | |
distribute, sublicense, and/or sell copies of the Software, and to | |
permit persons to whom the Software is furnished to do so, subject to | |
the following conditions: | |
View test_env_path.rb
executables = {} | |
total = 0 | |
path_extensions = ENV["PATHEXT"].gsub(".", "").downcase.split(File::PATH_SEPARATOR) | |
path = ENV["Path"] | |
path.split(File::PATH_SEPARATOR).each do |value| | |
dir = Pathname.new(value) | |
if dir.exist? then | |
filter = File.join(dir.realpath, "*.{" + path_extensions.join(",") + "}") | |
Dir.glob(filter).each do |file| |
View mysql.bat
sc create MySQL5 binPath= "D:\tools\mysql\bin\mysqld --defaults-file=D:\tools\mysql\my.ini MySQL5" | |
NET START MySQL5 | |
NET STOP MySQL5 | |
sc delete MySQL5 |
View 1.html
<!-- Facebook async loading of JSAPI --> | |
<div id="fb-root"></div> | |
<script> | |
// Facebook async loading. | |
(function() { | |
var e = document.createElement('script'); e.async = true; | |
e.src = document.location.protocol + | |
'//connect.facebook.net/en_US/all.js'; | |
document.getElementById('fb-root').appendChild(e); | |
}()); |
View apng.js
// This test is ascynchronous. Watch out. | |
(function(){ | |
var datauri = new Image, | |
ctx = document.createElement("canvas").getContext("2d"); | |
datauri.onerror = function() { | |
Modernizr.addTest('apng', function () { return false; }); | |
}; |
View Gemfile
source :rubygems | |
gem "ffi", "1.0.9" | |
gem "jruby-openssl" | |
gem "jruby-win32ole" |
View ruby_console.bat
@rem Do not use "echo off" to not affect any child calls. | |
@setlocal | |
@set PATH=%CD%\bin;%CD%\dk\bin;%CD%\dk\mingw\bin;%PATH% | |
@start %COMSPEC% |
View gist:1688497
var c = { | |
π: Math.PI, | |
"∞": Number.POSITIVE_INFINITY, | |
ℯ: Math.E, | |
i: Math.sqrt(-1), // ;) | |
ℏ: 1.054571726e−34, | |
ℎ: 6.62606957e−34, | |
c: 299792458, | |
φ: (1 + Math.sqrt(5))/2, | |
googol: 1e100, |
OlderNewer