Skip to content

Instantly share code, notes, and snippets.

View bozzmob's full-sized avatar
😎
Work In Progress

Satvik bozzmob

😎
Work In Progress
  • CISCO
  • India
View GitHub Profile
@vineeshnp
vineeshnp / meetup.md
Last active July 24, 2018 11:58
JS Meetup #23: Outline

Game backend from scratch using NodeJS

Click here to register!

Prerequisite

  • Fundamental's of NodeJS.
  • Basic understanding of eventloop.
  • Basics of ES6.
  • Working of REST api's.
  • How to play CHESS game.
@agentcooper
agentcooper / 0.README.md
Last active April 9, 2024 19:27
Telegram chat backup/export

How to use

  1. Login to https://web.telegram.org
  2. Copy-paste contents of telegram-scripts.js into JS console
  3. Run showContacts() to get the list of contacts with ids
  4. Run saveChat(userId) where userId is the id from step 3

Process can take a while, check console for progress. Occasionall FLOOD_WAIT errors are expected. Once done, browser will download the JSON file.

Motivation

@tioback
tioback / Input with suggestions
Created September 26, 2016 19:42
Workaround for using zIndex with Android.
import React, {Component} from "react";
import {
Dimensions,
Image,
Keyboard,
Modal,
Platform,
ScrollView,
StyleSheet,
Text,
@kane-thornwyrd
kane-thornwyrd / exemple.js
Last active April 17, 2019 03:19
How to browse and tweak objects using a string path. 😄 (require Underscore.js for the _.isString)
var target = {
foo: {
bar: {
baz: [
'madness'
]
}
}
};
@HereChen
HereChen / convert-image-to-base64.js
Last active March 29, 2022 11:31
convert image to base64
/**
* version1: convert online image
* @param {String} url
* @param {Function} callback
* @param {String} [outputFormat='image/png']
* @author HaNdTriX
* @example
convertImgToBase64('http://goo.gl/AOxHAL', function(base64Img){
console.log('IMAGE:',base64Img);
})
@nkint
nkint / gist:8576156
Created January 23, 2014 10:15
opencv and python: concatenate video
import numpy as np
import cv2
import os
# this two lines are for loading the videos.
# in this case the video are named as: cut1.mp4, cut2.mp4, ..., cut15.mp4
videofiles = [n for n in os.listdir('.') if n[0]=='c' and n[-4:]=='.mp4']
videofiles = sorted(videofiles, key=lambda item: int( item.partition('.')[0][3:]))
video_index = 0
@danharper
danharper / background.js
Last active March 30, 2024 18:25
Bare minimum Chrome extension to inject a JS file into the given page when you click on the browser action icon. The script then inserts a new div into the DOM.
// this is the background code...
// listen for our browerAction to be clicked
chrome.browserAction.onClicked.addListener(function (tab) {
// for the current tab, inject the "inject.js" file & execute it
chrome.tabs.executeScript(tab.ib, {
file: 'inject.js'
});
});
@rohitrangan
rohitrangan / JoinMP4.py
Created October 5, 2012 17:37
Combining multiple mp4's to become a single mp4.
#!/usr/bin/env python
import sys
import time
from subprocess import check_output
for i in range(1, len(sys.argv)):
print sys.argv[i],
fname = "Part" + str(i) + ".mpg"
print fname
@simme
simme / Install_tmux
Created October 19, 2011 07:55
Install and configure tmux on Mac OS X
# First install tmux
brew install tmux
# For mouse support (for switching panes and windows)
# Only needed if you are using Terminal.app (iTerm has mouse support)
Install http://www.culater.net/software/SIMBL/SIMBL.php
Then install https://bitheap.org/mouseterm/
# More on mouse support http://floriancrouzat.net/2010/07/run-tmux-with-mouse-support-in-mac-os-x-terminal-app/