I hereby claim:
- I am acoustep on github.
- I am mitchartemis (https://keybase.io/mitchartemis) on keybase.
- I have a public key ASC8OJ2yZmjolsTJBF4I0a8U23Dvtx3DLkmXzYA7CdQ8mAo
To claim this, I am signing this object:
| <?php | |
| function slice_word($string, $chars=3) | |
| { | |
| //1 trim and get rid of html | |
| //check if length more than required | |
| //2 cut to certain length | |
| //3 do normal array stuff but take off the last array unless only 1 or 2? | |
| $string = trim(strip_tags($string)); |
| <snippet> | |
| <content><![CDATA[ | |
| <!doctype html> | |
| <html> | |
| <head> | |
| <meta charset=utf-8> | |
| <title>${1}</title> | |
| </head> | |
| <body> | |
| ${2} |
| <snippet> | |
| <content><![CDATA[ | |
| \$('${1:body}')on.('${2:click}', function(${3}){ | |
| ${4} | |
| }); | |
| ]]></content> | |
| <!-- Optional: Set a tabTrigger to define how to trigger the snippet --> | |
| <tabTrigger>$9</tabTrigger> | |
| <!-- Optional: Set a scope to limit where the snippet will trigger --> | |
| <!-- <scope>source.python</scope> --> |
| [{ | |
| "keys": ["alt+shift+left"], | |
| "command": "set_layout", | |
| "args": | |
| { | |
| "cols": [0.0, 0.7, 1.0], | |
| "rows": [0.0, 1.0], | |
| "cells": [[0, 0, 1, 1], [1, 0, 2, 1]] | |
| } | |
| }, |
| <snippet> | |
| <content><![CDATA[ | |
| if(\$stmt = \$mysqli->prepare(${3:"${4}"})) | |
| { | |
| ${5:\$stmt->bind_param('${6:i}', ${7});} | |
| \$stmt->execute(); | |
| \$stmt->bind_result(${8}); | |
| while(\$stmt->fetch()) | |
| { | |
| ${9} |
| <snippet> | |
| <content><![CDATA[ | |
| if(\$stmt = \$mysqli->prepare(${3:"${4}"})) | |
| { | |
| ${5:\$stmt->bind_param('${6:i}', ${7});} | |
| \$stmt->execute(); | |
| \$stmt->bind_result(${8}); | |
| \$stmt->fetch(); | |
| ${9} | |
| } |
I hereby claim:
To claim this, I am signing this object:
| # src/actions/rss/show.cr | |
| #... | |
| xml ArticlesXmlSerializer.new(articles, {title: "Feed Name", description: "Here's the descr", path: request.path }).render | |
| #... | |
| # src/actions/xml_action.cr | |
| abstract class XMLAction < Lucky::Action | |
| private def xml(body : String) | |
| Lucky::TextResponse.new(context, content_type: "text/xml; charset=utf-8", body: body, status: 200) | |
| end |
These are the questions that can serve as a guide for the interview. You don't have to religiously adhere to them, though, so feel free to skip any or even come up with others you'd like to answer.
The easiest way for me to compose the interviews would be for you to fork this gist, add your name and your answers to the questions (right below each question) and send me the link to your gist.
My name is Mitch Stanley. I'm a full stack developer from the UK and I work for a web agency called isev.