You may have to delete the existing project (don't try this next time) (Assuming Pootle in /var/www/pootle)
cd /var/www/pootle
source env/bin/activate
pootle fs fetch --force MYPROJECT
pootle fs sync MYPROJECT| require 'rest_client' | |
| require 'uri/http' | |
| require 'nokogiri' | |
| require 'base64' | |
| puts | |
| puts | |
| puts 'Federation Metadata Checker' | |
| puts '===========================' | |
| puts |
You may have to delete the existing project (don't try this next time) (Assuming Pootle in /var/www/pootle)
cd /var/www/pootle
source env/bin/activate
pootle fs fetch --force MYPROJECT
pootle fs sync MYPROJECT| # config/initializers/haml_filters.rb | |
| # Thanks to https://gist.github.com/sleepingkingstudios/955676 | |
| # config/initializers/haml_filters.rb | |
| # in your haml files do e.g. | |
| # %td.description | |
| # :markdown | |
| # #{task.description} |
| # This is a sample class that you'll probably need | |
| # to do a bit of work on for your own needs, but it | |
| # will hopefully save you a lot of the headaches that we had | |
| class AwsMove | |
| FIVE_MB = 5 * 1024 * 1024 | |
| MAX_THREADS = 25 | |
| def move_folder(s3_client, old_key, new_key) | |
| # strip preceding '/' |
| //openjscad.org | |
| // Anna and Charlie's spral | |
| function main () { | |
| const twist = 9; | |
| var w = [ ]; | |
| for(var i = 0; i < 40; i++) { | |
| w.push( | |
| color('lightblue', cube({ | |
| size: [30, 6, 2] |
| //openjscad.org | |
| // Random structure | |
| function main () { | |
| var cube1 = cube({size:[4,4,4]}).translate([-2,-2,-2]); | |
| var hole = cylinder({r:1, h: 4}).translate([0,0,-2]); | |
| var nut1 = difference(cube1, hole); | |
| var rod1 = cylinder({r:1, h: 10}).rotateX(90).translate([0,-2,0]); |
| //openjscad.org | |
| // Anna and Charlie's spral | |
| function main () { | |
| const twist = 45; | |
| let i = 0; | |
| let delta = 1; | |
| var w = [ ]; | |
| for(var h = 0; h < 100; h++) { | |
| w.push( |
| // openjscad.org | |
| // Tower Bridge | |
| let fancy_bricks = true; | |
| function random_colour() { | |
| // based on 'BurlyWood'; | |
| return [ | |
| (222 + Math.random() * 10) / 255, | |
| (184 + Math.random() * 10) / 255, |
| /* For a query of results in the last 31 days */ | |
| SELECT recent_dates.`date`, | |
| IFNULL(sparse_results.`count`, 0) AS `count` | |
| FROM | |
| (SELECT SUBDATE(CURDATE(), number_table.delta) AS `date` | |
| FROM | |
| (SELECT 0 delta | |
| UNION SELECT 1 | |
| UNION SELECT 2 |