Skip to content

Instantly share code, notes, and snippets.

@cormac-work
cormac-work / questiongen
Created April 3, 2019 12:57
Question Gen
It's not _perfec_ but does make questions:
For example:
Input file =
What are Soft Skills?
Whereas hard skills are the tangible and technical skills easily demonstrated by a candidate’s qualifications and specific professional experiences, soft skills is a term used by employers to refer to the more intangible and non-technical abilities that are sought from candidates.
Soft skills are sometimes referred to as transferable skills or professional skills. As this term implies, these are skills that are less specialised, less rooted in specific vocations, and more aligned with the general disposition and personality of a candidate. Examples of important soft skills are communication, teamwork and problem solving.
@cormac-work
cormac-work / grammar bot
Created March 27, 2019 13:25
curl + grammar analysis
curl -H "Content-Type: application/json" \
-d "api_key=AF5B9M2X" \
-d "language=en-US" \
-d "text=Durand company offers to you the more efficient service than all others companies in Europe. For example we assure 3 years garranty for all of our products. all of the other companies assure only one year of garranty. we were the first company to developp application with the internet tools in 1990. then now , we have acquired a solid experience with this technology. We have developped 200 applications with internet instead of Our major competitor have just 5 or 6 application . Then you can wait for us the highest level of service and best solution to your specifics applications You will be happy to follow the thousand companies which have confidence and work with us since 30 years. take any time to make your choice. All the employees are ready to strengh this collaboration for the next year." \
"http://api.grammarbot.io/v2/check"
{
"software":
{
"name": "GrammarBot",
"version": "4.3.1",
# R Snippets
## How to use this file
Just open the file and search for key term. Or you can browse by heading (# or ##)
## Tables
To make a table:
Table is a function that produces a column or row wise table that counts the number of observations across two variables.
Variable one will be a row (1st or horizontal dimension) and variable 2 will be the columns (2nd or vertical dimension).
table(dataset$Variable_1, dataset$Variable_2)
@cormac-work
cormac-work / Print: Entry, ":CFBundleIdentifier", Does Not Exist.txt
Created February 6, 2018 15:08
Print: Entry, ":CFBundleIdentifier", Does Not Exist issue
I just merged several related issue. Let's avoid opening new issues for the same error message for now. It seems like the preferred workaround at this time is to do the following:
``rm -rf ~/.rncache``
``react-native run-ios``
Wait for the last command to finish in its entirety. You should see several messages that follow this format: curl: Saved to filename 'glog-0.3.4.tar.gz'. Do not press CTRL+C to kill the process.
Thanks to @jjerryhan for arriving at the above list of steps (see Handling third party build error on React Native for an explanation behind why some people may end up in this state).
I believe I saw some PRs land recently that may deal with this particular issue, but I'm not 100% sure. I'll come back and update this issue with my findings.
@cormac-work
cormac-work / wotd.json
Created February 5, 2018 15:30
wotd.json
{
"_id": "c-15",
"_parentId": "b-10",
"_type": "component",
"_component": "media",
"_classes": "",
"_layout": "left",
"title": "Title of the media component",
"displayTitle": "Title of the media component",
"body": "This is optional body text. Select the play button to start the video.",
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<!--
// ========================= Copyright wotd ========================
//
// wotd
//
// ==========================================================================
-->
<!DOCTYPE question_page [
<!ELEMENT question_page (metadata, question?, questionLinks?, image?)>
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<!--
// ========================= Copyright wotd ========================
//
// wotd
//
// ==========================================================================
-->
<!DOCTYPE question_page [
<!ELEMENT question_page (metadata, question?, questionLinks?, image?)>
@cormac-work
cormac-work / qcm.json
Created February 5, 2018 15:24
QCM.json
{
"_id":"c-B2RDV",
"_parentId":"b-B2RDV",
"_type":"component",
"_component":"mcq",
"_classes":"",
"_layout":"left",
"_attempts":1,
"_shouldDisplayAttempts": false,
@cormac-work
cormac-work / qcm.xml
Created February 5, 2018 15:14
QCM.xml
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<!--
// ========================= Copyright US ========================
//
// Example file for test
//
// ==========================================================================
-->
<!DOCTYPE qcuqcm [
<!ELEMENT qcuqcm (metadata, question?, questionLinks?, image?, answers, notions?)>
@cormac-work
cormac-work / adapt-component-icon.less
Last active October 25, 2017 08:35
Icon adapt bounce and color hover effect
.component {
.component-icon-holder {
/*reduced width to 10%*/
width: 10%;
float: left;
margin-right: 18px;
&.right {
float: right;