Skip to content

Instantly share code, notes, and snippets.

View sigdelsanjog's full-sized avatar
☮️
369?

Sanjog Sigdel sigdelsanjog

☮️
369?
View GitHub Profile
@sigdelsanjog
sigdelsanjog / sigdelsanjog_tweets.csv
Last active August 7, 2019 22:00 — forked from yanofsky/LICENSE
A script to download all of a user's tweets into a csv
id created_at text
792439080227250176 2016-10-29 18:52:54 RT @AlisonBLowndes: Just to prove how cool #deeplearning is this is #Daftpunk playing at @DeepMindAI in London #AI via @sindero https://t.…
792385467387740160 2016-10-29 15:19:51 RT @explore_gadgets: Wishing everybody a happy and prosperous Diwali / Tihar 💥💣
792322555180756992 2016-10-29 11:09:52 RT @BinodKChaudhary: Such a warm meeting with hon tony Blair at jp Morgan meeting in Paris. His family's affection for nepal is laudable. h…
792322472192331776 2016-10-29 11:09:32 RT @dbreunig: Apple's fastest growing product category. https://t.co/d1sel4N5Yc
792322410938667009 2016-10-29 11:09:18 RT @explore_gadgets: Working on many videos at once doesn't help 😑 lesson learnt ! Shooting #iphone7plus accessories #potraitmode https://…
792322277069115392 2016-10-29 11:08:46 RT @SumanEmpty: भैलेनी आइन आगन wi-fi को passport मागन गाई तिहरो भैलो
792319554680606720 2016-10-29 10:57:57 @verscend data shouldn't be compromised enough security measures should be appl
@sigdelsanjog
sigdelsanjog / tihartweets
Last active October 30, 2016 14:07
Tweets with keywords 'tihar', 'diwali', 'india', 'nepal' to map Tihar and Diwali Tweets
This file has been truncated, but you can view the full file.
{"created_at":"Sun Oct 30 14:00:28 +0000 2016","id":792727876659507200,"id_str":"792727876659507200","text":"RT @iamsrk: Wishing everyone a Happy Diwali. May the Festival of Lights bring with it brightness and goodness in all our lives.\u2026 ","source":"\u003ca href=\"http:\/\/twitter.com\/download\/android\" rel=\"nofollow\"\u003eTwitter for Android\u003c\/a\u003e","truncated":false,"in_reply_to_status_id":null,"in_reply_to_status_id_str":null,"in_reply_to_user_id":null,"in_reply_to_user_id_str":null,"in_reply_to_screen_name":null,"user":{"id":62822734,"id_str":"62822734","name":"Mona Levy","screen_name":"LoveAsoka","location":"Hanau, Hessen, Deutschland","url":null,"description":"\u2665 Die Hard SRK Fan \u2665","protected":false,"verified":false,"followers_count":97,"friends_count":52,"listed_count":3,"favourites_count":2007,"statuses_count":7209,"created_at":"Tue Aug 04 13:50:51 +0000 2009","utc_offset":3600,"time_zone":"Berlin","geo_enabled":true,"lang":"de","contributors_enabled":false,"is_translator":f
<b:widget id='HTML5' locked='false' title='Disqus' type='HTML'>
<b:widget-settings>
<b:widget-setting name='content'><![CDATA[<!-- Disqus Widget -->]]></b:widget-setting>
</b:widget-settings>
<b:includable id='main'>
<script type='text/javascript'>
var disqus_shortname = &#39;techjhola&#39;;
var disqus_blogger_current_url = &quot;<data:blog.canonicalUrl/>&quot;;
if (!disqus_blogger_current_url.length) {
disqus_blogger_current_url = &quot;<data:blog.url/>&quot;;
@sigdelsanjog
sigdelsanjog / active.md
Created August 24, 2017 10:10 — forked from paulmillr/active.md
Most active GitHub users (by contributions). http://twitter.com/paulmillr

Most active GitHub users (git.io/top)

The count of contributions (summary of Pull Requests, opened issues and commits) to public repos at GitHub.com from Fri, 19 Jun 2015 15:17:38 GMT till Sun, 19 Jun 2016 15:17:38 GMT.

Only first 1000 GitHub users according to the count of followers are taken. This is because of limitations of GitHub search. Sorting algo in pseudocode:

githubUsers
 .filter(user =&gt; user.followers &gt; 635)
@sigdelsanjog
sigdelsanjog / .gitignore
Created September 5, 2017 17:23
GitIgnores that I always need do do while doing respective projects in various development
# ElectronApi
.DS_Store
dist/electron/*
dist/web/*
build/*
!build/icons
node_modules/
npm-debug.log
npm-debug.log.*
thumbs.db
@sigdelsanjog
sigdelsanjog / main.js
Last active September 22, 2017 14:58
const electron = require('electron')
const countdown = require('./countdown')
const app = electron.app
const BrowserWindow = electron.BrowserWindow
let mainWindow
app.on('ready', _ => {
mainWindow = new BrowserWindow({
{
"name": "countdown",
"productName": "COUNTDOWN",
"version": "1.0.0",
"description": "Simple Countdown timer using ELECTRON API.",
"main": "src/main.js",
"scripts": {
"start": "electron .",
"test": "echo \"Error: no test specified\" && exit 1"
},
module.exports = function coutndown(tick) {
let count = 10
let timer = setInterval(_=> {
tick(count--)
if (count === -1)
clearInterval(timer)
}, 1000)
}
<html>
<head>
<link rel="stylesheet" href="countdown.css" />
</head>
<body>
<div class="container">
<h1 class="title">COUNTDOWN</h1>
<div class="countdown" id="count"></div>
<button class="btn" id="start">Start</button>
</div>
const electron = require('electron')
const ipc = electron.ipcRenderer
document.getElementById('start').addEventListener('click', _ => {
ipc.send('countdown-start')
})
ipc.on('countdown', (evt, count) => {
document.getElementById('count').innerHTML = count