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
const ADHDHelpers = (function () { | |
let module = { | |
scrollTop: 0, | |
isDisabled: false, | |
shouldDisplayScrollbar: false, |
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
var https = require('https'); | |
exports.get = function(accessToken, apiPath, callback) { | |
// creating options object for the https request | |
var options = { | |
// the facebook open graph domain | |
host: 'graph.facebook.com', | |
// secured port, for https | |
port: 443, |
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 React, {Component} from 'react' | |
import {View, Text} from 'react-native' | |
import {mobxify} from 'utils' | |
class App extends Component { | |
render() { | |
return ( | |
<View> | |
<Text>mobxify is awesome!</Text> | |
</View> |
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
(function ($) { | |
var compiled = {}; | |
$.fn.handlebars = function (template, data) { | |
if (template instanceof jQuery) { | |
template = $("<div />").append($(template).clone()).html(); | |
} | |
compiled[template] = Handlebars.compile(template); | |
this.html(compiled[template](data)); | |
}; | |
})(jQuery); |
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
(function(){ | |
//saving the original console.log function | |
var preservedConsoleLog = console.log; | |
//overriding console.log function | |
console.log = function() { | |
//we can't just call to `preservedConsoleLog` function, | |
//that will throw an error (TypeError: Illegal invocation) | |
//because we need the function to be inside the |
NewerOlder