Skip to content

Instantly share code, notes, and snippets.

@kp666
kp666 / .block
Last active May 27, 2018 19:30
fresh block
license: mit
@kp666
kp666 / .block
Created June 5, 2018 09:36
Basic scatter plot
license: mit
class Country < ActiveRecord::Base
end
@kp666
kp666 / Test.csv
Created October 22, 2018 13:01
Test
Paris 1 2
@kp666
kp666 / gosugol.rb
Last active February 28, 2019 14:28
require 'gosu'
class Tutorial < Gosu::Window
def initialize(board_width, board_height, pattern_file)
@board_width = board_width
@board_height = board_height
@columns = board_width / 12
@rows = board_height / 12
super @board_width, @board_height, update_interval: 100

Keybase proof

I hereby claim:

  • I am kp666 on github.
  • I am kp666 (https://keybase.io/kp666) on keybase.
  • I have a public key ASBhjlhuJvSrL9eBqSeOCrswCVQP_YaR4wZSkXyJw9z4AQo

To claim this, I am signing this object:

app.post('/login', function (req, res, next) {
passport.use(new GoogleStrategy({
clientID: process.env.CLIENT_ID,
clientSecret: process.env.CLIENT_SECRET,
callbackURL: "http://localhost:3000/auth/google/dashboard",
userProfileURL: "https://www.googleapis.com/oauth2/v3/userinfo"
},
function(accessToken, refreshToken, profile, cb) {
if(profile._json.hd === "nitc.ac.in"){
User.findOrCreate({ googleId: profile.id ,displayName:profile.displayName,email:profile.emails[0].value}, function (err, user) {
@kp666
kp666 / sample.js
Created December 27, 2019 17:09
sample.js
app.post('/login', function (req, res, next) {
passport.use(new GoogleStrategy({
clientID: process.env.CLIENT_ID,
clientSecret: process.env.CLIENT_SECRET,
callbackURL: "http://localhost:3000/auth/google/dashboard",
userProfileURL: "https://www.googleapis.com/oauth2/v3/userinfo"
},
function(accessToken, refreshToken, profile, cb) {
if(profile._json.hd === "nitc.ac.in"){
User.findOrCreate({ googleId: profile.id ,displayName:profile.displayName,email:profile.emails[0].value}, function (err, user) {
udp://public.popcorn-tracker.org:6969/announce
http://104.28.1.30:8080/announce
http://104.28.16.69/announce
http://107.150.14.110:6969/announce
http://109.121.134.121:1337/announce
udp://public.popcorn-tracker.org:6969/announce
http://104.28.1.30:8080/announce
http://104.28.16.69/announce
http://107.150.14.110:6969/announce
http://109.121.134.121:1337/announce