Skip to content

Instantly share code, notes, and snippets.

@cormac-work
cormac-work / codeSnippets.html
Last active October 27, 2016 13:27
Code snippets
INLINE AUDIO
<audio controls> <source src=\“course.en/assets/ES_1_2_0005.mp3\” type=\”audio/mpeg\”> Your browser does not support the audio tag.</audio>
Resiging images
<img src='course/en/assets/DE_1_1_V4.jpg' width=\"80\" height=\"80\"> (use slashes to avoid javascript errors)
ES-LVL1-U1-L1-
ES-LVL1-U1-L1-
{
"_id": "matching",
"_parentId": "block-4c",
"_classes": "",
"_layout": "full",
"_type": "component",
"_component": "matching",
"_attempts": 2,
"_shouldDisplayAttempts": false,
"_isRandom": false,
border-radius: 30px 0 0 0;
border-bottom: 10px solid #6d96ac;
}
.leg-right:before{
right: -20px;
background-color: #fbfdfa;
border-radius: 0 30px 0 0;
border-bottom: 10px solid #b0cfe4;
}
@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;
@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 / 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,
<?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 / 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.",
@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.