I hereby claim:
- I am CaiJimmy on github.
- I am jimmycai (https://keybase.io/jimmycai) on keybase.
- I have a public key whose fingerprint is AB5B 5B5A 9B33 78C6 7FA9 B6C2 E3D5 D635 F780 1C9E
To claim this, I am signing this object:
| content = function (options) { | |
| var truncateOptions = (options || {}).hash || {}; | |
| truncateOptions = _.pick(truncateOptions, ['words', 'characters', 'more']); | |
| _.keys(truncateOptions).map(function (key) { | |
| truncateOptions[key] = parseInt(truncateOptions[key], 10); | |
| }); | |
| if (truncateOptions.hasOwnProperty('words') || truncateOptions.hasOwnProperty('characters')) { | |
| // Due to weirdness in downsize the 'words' option | |
| // must be passed as a string. refer to #1796 |
| <section id="form"> | |
| <form action="/post.php" method="POST" id="contribuir"> | |
| <section id="form-wrap"> | |
| <input name="name" type="text" placeholder="Tu nombre*" id="nombre"/> | |
| <input name="email" type="mail" placeholder="E-mail(No será publicado)" id="email"/> | |
| <input name="titulo" type="text" placeholder="El titulo*"/> | |
| <textarea rows="8" name="contenido" required="true" id="contenido" placeholder="El contenido*"></textarea> | |
| <input type="submit" name="submit" id="submit" value="Enviar"> | |
| </section> | |
| </form> |
| // # Ghost Configuration | |
| // Setup your Ghost install for various environments | |
| // Documentation can be found at http://support.ghost.org/config/ | |
| var path = require('path'), | |
| config; | |
| var config; | |
| if (process.env.OPENSHIFT_MYSQL_DB_HOST != undefined) { | |
| config = { | |
| // ### Production |
| $('img[src^="https://nichijou.org/content/images"]').each(function(){ | |
| var src = $(this).attr("src") | |
| var newsrc = src.replace( 'https://nichijou.org', '//CDN-URL.qbox.me' ); | |
| $(this).attr("src", newsrc ); | |
| }) |
| [outputs] | |
| home = ["HTML", "RSS", "JSON"] |
I hereby claim:
To claim this, I am signing this object:
| function click(){ | |
| return new Promise(resolve=>{ | |
| [...document.querySelectorAll('.js-stream-item.stream-item')].forEach(container => { | |
| container.querySelector('.ProfileTweet-action--unfavorite').click(); | |
| container.remove(); | |
| }); | |
| resolve(); | |
| }) | |
| }; |
| /* HTTP Function to initialize / reset question counter manually */ | |
| const express = require('express'); | |
| const cors = require('cors')({ | |
| origin: true | |
| }); | |
| const app = express(); | |
| app.use(cors); | |
| app.get('/', (req, res) => { | |
| const topicID = req.query.topicID, |