Link to add a iCalendar feed to Google Calendar
https://www.google.com/calendar/render?cid=http://example.org/index.ics
Note: cid
must be a plain HTTP URL even if the feed is actually served over HTTPS
Link to add a iCalendar feed to Google Calendar
https://www.google.com/calendar/render?cid=http://example.org/index.ics
Note: cid
must be a plain HTTP URL even if the feed is actually served over HTTPS
require "json" | |
IO.popen("./rtl_433 -F json") do |io| | |
while (line = io.gets) do | |
begin | |
puts JSON.parse(line).inspect | |
rescue JSON::ParserError | |
puts line | |
end | |
end |
#!/usr/bin/env ruby | |
require "bundler/inline" | |
gemfile do | |
source "https://rubygems.org" | |
gem "down" | |
gem "pry" | |
end |
#!/usr/bin/env ruby | |
require "bundler/inline" | |
gemfile do | |
source "https://rubygems.org" | |
gem "addressable" | |
gem "nokogiri" | |
gem "pry" | |
end |
require "csv" | |
csv = CSV.new(File.open("User_Download_08052019_142707.csv"), headers: :first_row) | |
File.open("./gsuite.ldif", "w+") do |file| | |
csv.each_with_index do |row, index| | |
file.write("dn: cn=#{row["First Name [Required]"]} #{row["Last Name [Required]"]},id=#{201 + index}\r\n") | |
file.write("cn: #{row["First Name [Required]"]} #{row["Last Name [Required]"]}\r\n") | |
file.write("givenname: -----\r\n") | |
file.write("mail: #{row["Email Address [Required]"]}\r\n") |
body { | |
transform: skew(20deg); | |
animation: shake 2s infinite; | |
animation-direction: alternate; | |
} | |
@keyframes shake { | |
0% { | |
transform: skewX(20deg); | |
} |
<img src="data:image/svg+xml;charset=utf-8, | |
<svg xmlns='w3.org/2000/svg' | |
width='1280' height='720' />" | |
data-src="lazy.jpg" | |
alt="A lazy Jpeg" /> |
<% sitemap.resources.select {|r| r.path =~ /\.html\z/i }.each do |resource| %> | |
<%= resource.destination_path %> | |
<% end %> |
--- array.c~ Thu Dec 21 14:39:19 1995 | |
+++ array.c Thu Dec 21 14:36:06 1995 | |
@@ -283,8 +283,8 @@ | |
end = len + end; | |
if (end < 0) end = 0; | |
} | |
- if (len < end) end = len; | |
- if (beg < end) { | |
+ if (end > len) end = len; | |
+ if (beg > end) { |
#!/usr/bin/env ruby | |
require "digest" | |
require "find" | |
require "optparse" | |
options = {} | |
OptionParser.new do |opts| | |
opts.banner = "Usage: recursive-hashes [options]" |