Skip to content

Instantly share code, notes, and snippets.

View terrysahaidak's full-sized avatar

Terry Sahaidak terrysahaidak

View GitHub Profile
App.Adapter = {
ajax: function(method, options, token) {
var options = options || {};
options.dataType = 'json';
var str = Object.keys(options).map(function(key){
return encodeURIComponent(key) + '=' + encodeURIComponent(obj[key]);
}).join('&');
return ic.ajax.request('https://api.vk.com/method/' + method + '?' + str + '&access_token=' + token);
}
};
/* remove right sidebar*/
.sidebar_right{
display: none;
}
.content_left {
padding-right: 0px;
}
/* remove footer logos */
.footer_logos{
//import fetch from 'isomorphic-fetch'
import qs from 'query-string'
const remote = window.require('remote')
const BrowserWindow = remote.require('browser-window')
const fetch = remote.require('isomorphic-fetch')
export default class WebApi {
constructor(args={}) {
let defaultConfig = this._getDefaultConfig()
// user_id=27830729
// order=hints
// count=3
// fields=photo_100
// name_case=nom
const resFriends = {
response: {
count: 238,
items: [{
id: 53472976,
@terrysahaidak
terrysahaidak / error
Created January 21, 2016 09:45
Test failed
messages module
messages reducer
√ should handle ROOM_MESSAGES_SUCCESS
1) should handle ROOM_MESSAGES_BEFORE_SUCCESS
1 passing (495ms)
1 failing
1) messages module messages reducer should handle ROOM_MESSAGES_BEFORE_SUCCESS:
import React, {
Component, StyleSheet, PropTypes, Text, View, TouchableOpacity, ListView, Animated
} from 'react-native';
import _ from 'lodash'
import InvertibleScrollView from 'react-native-invertible-scroll-view'
import Message from './Message'
export default class MessagesListView extends Component {
constructor(props) {
W/OpenGLRenderer(22242): Path too large to be rendered into a texture
W/OpenGLRenderer(22242): Path too large to be rendered into a texture
W/OpenGLRenderer(22242): Path too large to be rendered into a texture
D/TaskPersister( 611): removeObsoleteFile: deleting file=380_task.xml
D/TaskPersister( 611): removeObsoleteFile: deleting file=380_task_thumbnail.png
E/TemperatureHumiditySensor( 611): mCompEngine is NULL
W/unknown:React(22242): You seem to be running on device. Run 'adb reverse tcp:8081 tcp:8081' to forward t
package com.terrysahaidak.faye;
import com.google.gson.JsonObject;
import com.amatkivskiy.gitter.sdk.async.faye.client.AsyncGitterFayeClient;
import com.amatkivskiy.gitter.sdk.async.faye.interfaces.ChannelListener;
import com.amatkivskiy.gitter.sdk.async.faye.interfaces.ConnectionListener;
import com.amatkivskiy.gitter.sdk.async.faye.interfaces.DisconnectionListener;
import com.amatkivskiy.gitter.sdk.async.faye.interfaces.Logger;
import com.amatkivskiy.gitter.sdk.async.faye.interfaces.DisconnectionListener;
package com.terrysahaidak.faye;
import com.google.gson.JsonObject;
import javax.annotation.Nullable;
import com.amatkivskiy.gitter.sdk.async.faye.client.AsyncGitterFayeClient;
import com.amatkivskiy.gitter.sdk.async.faye.interfaces.ChannelListener;
import com.amatkivskiy.gitter.sdk.async.faye.interfaces.ConnectionListener;
import com.amatkivskiy.gitter.sdk.async.faye.interfaces.DisconnectionListener;
import com.amatkivskiy.gitter.sdk.async.faye.interfaces.Logger;
@terrysahaidak
terrysahaidak / esnextbin.md
Created April 3, 2016 19:03
esnextbin sketch