This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* eslint-disable */ | |
const common = require('../jest-config.common'); | |
module.exports = Object.assign({}, common, { | |
"coverageDirectory": "<rootDir>/coverage/browser", | |
"testMatch": [ | |
"**/test/browser/**/*.test.js" | |
], | |
"setupFiles": [ | |
"<rootDir>/src/test/browser/setup.js" | |
] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* eslint-disable no-return-assign */ | |
import React, {Component} from 'react'; | |
import debounce from 'debounce'; | |
import {Table, Column} from 'fixed-data-table-2'; | |
function setHeadersFixed(containerEl) { | |
const els = containerEl.getElementsByClassName('fixedDataTableLayout_header'); | |
[].forEach.call(els, (el) => { | |
const parentNode = el.parentNode; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// this is adapter | |
public class UsersAdapter extends ArrayAdapter<RowItem> { | |
@Override | |
public View getView(int position, View convertView, ViewGroup parent) { | |
// use pattern holder, just Google it and you'll see | |
if (convertView == null) { | |
// ... | |
convertView.setTag(...); | |
} else { | |
// ... |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ---- | |
// Sass (v3.3.2) | |
// Compass (v1.0.0.alpha.18) | |
// ---- | |
@mixin widthFull() { | |
width: 100%; | |
max-width: none; | |
} | |
@mixin heightFull() { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import scalaz._ | |
import Scalaz._ | |
import xml.{Elem, NodeSeq} | |
import net.liftweb.util.CssSel | |
import net.liftweb.util.Helpers._ | |
import net.liftweb.http.js.JsCmds.Noop | |
import net.liftweb.http.js.JsCmd | |
import net.liftweb.common.{Failure, Full, Box, Empty} | |
/** |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Mac OS instruction: | |
* Download and install <a href="http://developer.android.com/sdk/installing/studio.html" target="_blank">Android Studio</a> | |
* Open Android Studio and select one of the options shown (for simplicity, this instruction selects New Project -> Blank Activity) | |
* Setup the name of your project, launcher icon, and other stuff that it asks you to | |
* In this instruction, the name of the app is `StackMobAndroidSDKTest` | |
* After the project window is open, add StackMob Android SDK into the `libs` directory <img src="https://s3.amazonaws.com/static.stackmob.com/images/android/as_sm_android_libs.png" style="margin: 20px 0 20px 0;" /> | |
* Right click on the StackMob Android JAR file and select `Add as Library...` -> `OK` <img src="https://s3.amazonaws.com/static.stackmob.com/images/android/as_sm_android_add_as_library.png" style="margin: 20px 0 20px 0;" /> | |
* Open `build.gradle` under `src` directory and add `compile files('<path_to_stackmob_android_sdk>')` <img src="https://s3.amazonaws.com/static.stackmob. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
**JS SDK** | |
```javascript | |
<script type="text/javascript"> | |
StackMob.customcode('hello_world', {}, 'GET' //skip third param for default 'GET'. This can also be either 'POST', 'PUT', or 'DELETE' | |
{ | |
success: function(jsonResult) { | |
//jsonResult is the JSON object: { "msg": "Hello, world!" } | |
}, | |
NewerOlder