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
>> installing & using CHROMIUM << | |
- download CHROMIUM from https://www.chromium.org/Home | |
- how to run it with custom params, see here: | |
https://stackoverflow.com/a/42024918/492918 | |
- and here is an example that disables CORS, local security validation, etc | |
chromium.exe --args --disable-web-security --user-data-dir --allow-insecure-localhost |
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
window.onload = function () { | |
postJsonData().then(function (theResult) { | |
console.log("theResult: " + theResult); | |
// do something else if necessary | |
}); | |
} | |
function getJsonData() { | |
targetUrl = "https://api.etcetc.com/gooo"; | |
return new Promise(function (resolve, reject) { |
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
/* | |
// adapted from https://medium.com/@netczuk/your-last-eslint-config-9e35bace2f99 | |
How to enable ESLINT via the easiest way? | |
1) prepare this file .eslintrc.js | |
2) remember to update .gitignore like this; | |
# Ignore all dotfiles... |
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 DateTimePicker from 'material-ui-datetimepicker'; | |
import DatePickerDialog from 'material-ui/DatePicker/DatePickerDialog' | |
import TimePickerDialog from 'material-ui/TimePicker/TimePickerDialog'; | |
import { Field } from 'redux-form'; | |
const renderMyDateTimeInput = ({ input, meta: { touched, error } }) => ( | |
// for more customisation, see https://github.com/dmtrKovalenko/material-ui-datetimepicker |
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
/*** | |
* Copyleft - incognito | |
* | |
* @author: incognito_at_wareninja | |
* @see https://github.com/WareNinja | |
* disclaimer: I code for fun, dunno what I'm coding about :) | |
*/ | |
package utils; |
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
package twitter_loop; | |
import com.mongodb.BasicDBObject; | |
import com.mongodb.DB; | |
import com.mongodb.DBCollection; | |
import com.mongodb.DBCursor; | |
import com.mongodb.Mongo; | |
import com.mongodb.MongoException; | |
import java.net.UnknownHostException; | |
import java.util.List; |
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
/*** | |
* Copyleft - Almighty Matrix! | |
* | |
* @author: yg@wareninja.com | |
* @see https://github.com/WareNinja | |
* disclaimer: I code for fun, dunno what I'm coding about :) | |
*/ | |
package utils; |
NewerOlder