Skip to content

Instantly share code, notes, and snippets.

View cooljith91112's full-sized avatar
💬
Making a Retro Game

Indrajith K L cooljith91112

💬
Making a Retro Game
View GitHub Profile
@cooljith91112
cooljith91112 / example1.java
Last active November 2, 2015 07:07
Stackoverflow example 1
/*==========
Main Class
==========*/
URL locations = Main.class.getResource("your.fxml");
FXMLLoader loader = new FXMLLoader();
loader.setLocation(locations);
loader.setBuilderFactory(new JavaFXBuilderFactory());
Parent root = loader.load(locations.openStream());
Scene scene = new Scene(root, 650, 340);
primaryStage.setScene(scene);
LibJitsi.start();
MediaService mediaService = LibJitsi.getMediaService();
//I assume that I have a working video and audio MediaDevice
MediaDevice randomVideoDevice = createVideoDevice();
MediaDevice randomAudioDevice = createAudioDevice();
//I create the MediaFormat for each stream
MediaFormat videoFormat
Changing email providers does not solve the problem. Email is ***NOT usually*** encrypted at the protocol level. It is very likely better to just stick with Gmail sadly enough.
The only real resolution is to:
1. Never send sensitive information over traditional email without TNO PIE ([GnuPG](https://en.wikipedia.org/wiki/GNU_Privacy_Guard) or GPG).
This is extremely dangerous because:
1. Most services do not offer secure SMTP
1. Secure SMTP is vulnerable to downgrade attacks.
1. Use a secure, anonymous and decentralized alternative such as I2P-Bote or Bitmessage.
@cooljith91112
cooljith91112 / 0_reuse_code.js
Created February 1, 2016 04:17
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
@cooljith91112
cooljith91112 / gist:413023b805105cbaff3a
Created February 1, 2016 09:05 — forked from jineeshjohn/gist:2044414
Dynamic html table rows and column creation with jQuery
<script type="text/javascript" src="js/jquery-1.7.1.min.js"></script>
<style>
table{
width:500px;
height:500px;
}
table td{
padding:10px;
margin:10px;
border:1px solid #ccc;
setBadge = function (text) {
if (process.platform === "darwin") {
app.dock.setBadge("" + text);
} else if (process.platform === "win32") {
var win = remote.getCurrentWindow();
if (text === "") {
win.setOverlayIcon(null, "");
return;
}
@cooljith91112
cooljith91112 / firebase_detect_data.js
Created May 16, 2016 07:54 — forked from anantn/firebase_detect_data.js
Firebase: Detecting if data exists. This snippet detects if a user ID is already taken
function go() {
var userId = prompt('Username?', 'Guest');
checkIfUserExists(userId);
}
var USERS_LOCATION = 'https://SampleChat.firebaseIO-demo.com/users';
function userExistsCallback(userId, exists) {
if (exists) {
alert('user ' + userId + ' exists!');
@cooljith91112
cooljith91112 / OpenSimplexNoise.java
Created June 5, 2016 18:26 — forked from KdotJPG/OpenSimplex2S.java
Visually axis-decorrelated coherent noise algorithm based on the Simplectic honeycomb.
/*
* OpenSimplex Noise in Java.
* by Kurt Spencer
*
* v1.1 (October 5, 2014)
* - Added 2D and 4D implementations.
* - Proper gradient sets for all dimensions, from a
* dimensionally-generalizable scheme with an actual
* rhyme and reason behind it.
* - Removed default permutation array in favor of
@cooljith91112
cooljith91112 / awesome_list_reading.txt
Created July 15, 2016 03:39
Lolman's Awesome List of Worth Reading List
https://backchannel.com/airbnbs-sheryl-sandberg-is-the-valley-s-quiet-superpower-ed02fc5fc4ea#.w5nsp9mwq
https://medium.com/@glennbeck/disagree-or-be-fired-a0ae2deca9b6#.18n7fhrde
@cooljith91112
cooljith91112 / lodash_random_numbers_floating.js
Created July 15, 2016 05:32
Lodash Random Decimal Numbers
.ceil(_.random(1,5, true),2); //Generate Random numbers between 1 & 5 with precision of 2. ex: 4.56