Skip to content

Instantly share code, notes, and snippets.

View jywarren's full-sized avatar

Jeffrey Warren jywarren

View GitHub Profile

Action: Someone follows a tag

What currently happens after the action:

They're taken to their subscriptions page and see an alert that says "You are now following tag".

What to change and text to add/revise:

Add more text and links to the alert to suggest next steps. Ideally, the URLs would reflect the tag just followed, e.g., the link to the question editor includes the tag just followed as a pre-populated tag.

w = Map.where.not(author: 'anonymous').collect(&:warpables)
urls = []
w.each do |img|
img.each do |i| urls << [i.map.name,i.image.url];end
end
file = File.new("images.json", "w")
file.puts(urls.to_s)
file.close
https://mapknitter.org/profile/007sonic
https://mapknitter.org/profile/025091
https://mapknitter.org/profile/100kristine
https://mapknitter.org/profile/101dmart
https://mapknitter.org/profile/1260730865
https://mapknitter.org/profile/1800injured
https://mapknitter.org/profile/21karrottapioca
https://mapknitter.org/profile/2903
https://mapknitter.org/profile/2peanut1
https://mapknitter.org/profile/3136114
https://mapknitter.org/maps/--10
https://mapknitter.org/maps/--12
https://mapknitter.org/maps/--13
https://mapknitter.org/maps/--14
https://mapknitter.org/maps/--15
https://mapknitter.org/maps/--17
https://mapknitter.org/maps/--19
https://mapknitter.org/maps/--21
https://mapknitter.org/maps/--22
https://mapknitter.org/maps/--23
https://mapknitter.org/maps/rimac
https://mapknitter.org/maps/mit
https://mapknitter.org/maps/mit-night
https://mapknitter.org/maps/google-campus
https://mapknitter.org/maps/duinen
https://mapknitter.org/maps/cantagallo
https://mapknitter.org/maps/deathstar-plans
https://mapknitter.org/maps/bcds
https://mapknitter.org/maps/santa-marta
https://mapknitter.org/maps/sdjf
output = File.open('public/maps2.txt',"w")
output << Map.joins(:warpables).where(password: '').distinct.col
lect(&:slug).join(',')
output.close
{"textures":[{"source":0,"sampler":0},{"source":1,"sampler":0},{"source":2,"sampler":0}],"skins":[{"name":"AvatarRoot","joints":[40,39,6,5,2,3,4,22,9,8,7,12,11,10,15,14,13,18,17,16,21,20,19,38,25,24,23,28,27,26,31,30,29,34,33,32,37,36,35],"inverseBindMatrices":11}],"scenes":[{"nodes":[1,47],"name":"Scene"}],"scene":0,"samplers":[{"minFilter":9987,"magFilter":9729}],"nodes":[{"rotation":[-0.7071067690849304,0,0,0.7071067690849304],"name":"Light_Orientation.001_Orientation","extensions":{"KHR_lights_punctual":{"light":0}}},{"name":"Light_Orientation.001","children":[0]},{"translation":[-0.06142770126461983,0.05949225276708603,0.13090287148952484],"scale":[1,0.9999998211860657,0.9999999403953552],"rotation":[5.396385915901192e-8,0.6993563771247864,0.7147731184959412,5.279993331441801e-8],"name":"RightEye","isBone":true},{"translation":[0.06142747774720192,0.059492480009794235,0.13090330362319946],"scale":[1,0.9999998211860657,0.9999999403953552],"rotation":[5.396385915901192e-8,0.6993563771247864,0.7147731184959
<!-- insert this code into a PL wiki page to create a modal popup -->
<link rel="stylesheet" href="https://idurar.github.io/vanilla-js-modal/src/modal.css" />
<script src="https://idurar.github.io/vanilla-js-modal/src/modal.js"></script>
<div id="idContent" style="display:none">
<h3>Asking for your help</h3>
<p>Are you a teacher in New Orleans?</p>
<div class="container"><div class="row">
<div class="col-6">
0 info it worked if it ends with ok
1 verbose cli [
1 verbose cli '/home/gitpod/.nvm/versions/node/v12.18.2/bin/node',
1 verbose cli '/home/gitpod/.nvm/versions/node/v12.18.2/bin/npm',
1 verbose cli 'run',
1 verbose cli 'core-tests'
1 verbose cli ]
2 info using [email protected]
3 info using [email protected]
4 verbose run-script [ 'precore-tests', 'core-tests', 'postcore-tests' ]
gitpod /workspace/plots2 $ rails test test
DEPRECATION WARNING: Leaving `ActiveRecord::ConnectionAdapters::SQLite3Adapter.represent_boolean_as_integer`
set to false is deprecated. SQLite databases have used 't' and 'f' to serialize
boolean values and must have old data converted to 1 and 0 (its native boolean
serialization) before setting this flag to true. Conversion can be accomplished
by setting up a rake task which runs
ExampleModel.where("boolean_column = 't'").update_all(boolean_column: 1)
ExampleModel.where("boolean_column = 'f'").update_all(boolean_column: 0)