The particles/plankton swimming around in the background of the aquatilis website:
Forked from Justin Windle's Pen Gravitational Field.
A Pen by Tim Holman on CodePen.
console.log($LINE$); | |
// LINE = lineNumber() |
// Run from console on developers tools (chrome dev tools) | |
// Go to friends page from your profile and open console F12 or alt+cmd+I | |
// Get all links from action section, this will fetch links for remove from friends and other too. | |
// FIXME: add filter to show only remove from friends links | |
var l = document.querySelectorAll('.friends_act'); | |
// Function link takes list of links (dom elements) as argument and iterate through each of them and set them style properties | |
// in my case position: fixed; top: 20px; right: 40px; |
The particles/plankton swimming around in the background of the aquatilis website:
Forked from Justin Windle's Pen Gravitational Field.
A Pen by Tim Holman on CodePen.
// reference http://graphicdesign.stackexchange.com/a/26044/18833 | |
function exportFileToPNG(dest, artBoardIndex) | |
{ | |
var exportOptions = new ExportOptionsPNG24(); // or ExportOptionsPNG24 | |
var type = ExportType.PNG24; // or ExportType.PNG24 | |
var file = new File(dest + ".png"); | |
exportOptions.artBoardClipping = true; | |
exportOptions.antiAliasing = true; |
#search for bg images at stylesheets | |
url\(\/assets\/([a-z \/ \. _]+)\) | |
#replace it with image-url rails function | |
image-url('$1') |
$boeing_787: #787; | |
$boeing_777: #777; | |
$boeing_767: #767; | |
$boeing_747: #747; | |
$boeing_737: #737; | |
$airbus_320: #320; | |
$airbus_330: #330; | |
$airbus_340: #340; | |
$airbus_350: #350; |
UPDATE `wp_posts` | |
SET `wp_posts`.`post_status` = 'publish' | |
WHERE `wp_posts`.`post_type` = 'course' |
INSERT INTO `wp_postmeta` (`post_id`,`meta_key`,`meta_value`) | |
SELECT ID,'_lesson_course',`mmm_term_id` | |
FROM `wp_posts` WHERE `post_type` = 'lesson' |
UPDATE `wp_posts`, `wp_term_relationships` | |
SET `wp_posts`.`mmm_term_id` = `wp_term_relationships`.`term_taxonomy_id` | |
WHERE `wp_posts`.`ID` = `wp_term_relationships`.`object_id` AND `wp_posts`.`post_type` = 'lesson' |
INSERT INTO wp_posts (post_author,post_date,post_date_gmt,post_modified,post_modified_gmt,post_content,post_title,post_status,post_name,post_type,mmm_term_id) | |
SELECT '1',now(),now(),now(),now(),'db_flow',name,'draft',slug,'course',term_id | |
FROM wp_terms |