This file contains 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
Via Rails | |
https://moocode.com/posts/3-using-the-google-authenticator-app-with-rails | |
Using mainly poRuby: | |
http://bradylove.com/blog/2013/02/15/dead-simple-time-based-otp-with-google-authenticator/ |
This file contains 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
#!/bin/env | |
require 'httparty' | |
require 'cgi' | |
require 'pry' | |
myid=995287801 | |
200.times do |i| | |
begin | |
response=HTTParty.get("http://letsrevolutionizetesting.com/challenge.json?id=#{myid}") |
This file contains 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() { | |
'use strict'; | |
var globals = typeof window === 'undefined' ? global : window; | |
if (typeof globals.require === 'function') return; | |
var modules = {}; | |
var cache = {}; | |
var has = ({}).hasOwnProperty; |
This file contains 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 test = require('tape'); | |
//global.XMLHttpRequest = require("xmlhttprequest").XMLHttpRequest; | |
global.XMLHttpRequest = require("xmlhttprequest").XMLHttpRequest; | |
var m = require('mithril'); | |
var Module = require('../module.js'); | |
var config={ | |
url:'/urltoken', | |
title:'Hello there' | |
} |
This file contains 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
mock = (function () { | |
"use strict" | |
var window = {} | |
window.window = window | |
var document = window.document = { | |
// FIXME: add document.createRange().createContextualFragment() |
This file contains 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 * as edit from 'react-edit'; | |
class MyTable extends React.Component{ | |
constructor(props){ | |
super(props) | |
this.state={ | |
editedCell:null, | |
rows:[], | |
columns:[], | |
title: props.title |
This file contains 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 ReactDOM from 'react-dom' | |
import {observable} from 'mobx' | |
import {observer, Provider} from 'mobx-react'; | |
const store=observable({ | |
num:33, | |
name:'john' | |
}) |
This file contains 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
//StoreA.js | |
import importedB from './StoreB' | |
class StoreA{ | |
@observable fieldA | |
@computed get computedA(){ | |
return `I'm a ${this.fieldA} derived from ${importedB.computedB}` | |
} | |
} |
This file contains 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
{"success"=>true, | |
"terms"=>"https://currencylayer.com/terms", | |
"privacy"=>"https://currencylayer.com/privacy", | |
"timestamp"=>1483803068, | |
"source"=>"USD", | |
"quotes"=> | |
{"USDAED"=>3.672804, | |
"USDAFN"=>66.730003, | |
"USDALL"=>128.399994, | |
"USDAMD"=>483.440002, |
This file contains 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
{ | |
"NOGUEEEEEEEEy":"byeeee", | |
"numero": 445345345 | |
} |
OlderNewer