Skip to content

Instantly share code, notes, and snippets.

riteshn-niara

Block or report user

Report or block riteshn-niara

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@riteshn-niara
riteshn-niara / block-loop.go
Created Oct 22, 2017
Ctrl+C not exiting app
View block-loop.go
package main
import (
"fmt"
"github.com/Shopify/sarama"
"html"
"log"
"net/http"
"os"
"os/signal"
View gist:32d98d60154490041220
class Song
name = ndb.StringProperty()
genres = ndb.StringProperty(repeated=True)
>>> CSV >>>
song1, genre1, genre2
song2, genre3, genre4
song3, genre1
View gist:307587f25e1d075b897f
class Song
name = ndb.StringProperty()
genres = ndb.StringProperty(repeated=True)
>>> CSV >>>
song1, genre1, genre2
song2, genre3, genre4
song3, genre1
View gist:4577fc9bf2babffa72f8
$.ajax('api1').success(function(data) {
// insert into dom - data
})
$.ajax('api2').success(function(data) {
// insert into dom - data2
})
View gist:62612cd7cc748c60c08e
<div>
<h1>{{ headingText }}</h1>
<table>
<tr>
<td>{{ data.col1 }}</td>
</tr>
</table>
</div>
View gist:7a8bfdb88cf6e9e2929f
let blacklists = ["https://mail.google.com/*", "*://mail.google.com/*"]
map <C-f> scrollPageDown
map <C-b> scrollPageUp
let searchalias y = "youtube"
View gist:d419bcc7a8790f78a912
(ENV)cobra-~/sw/source/userapps/analyzer-web git:(analyzer-app-refactoring2) ✗: curl -c ~/cc.jar -v -H "Content-Type: application/json" -d '{"login":"admin","password":"admin"}' http://localhost:8080/api/auth/login
* Adding handle: conn: 0x7fdb13804000
* Adding handle: send: 0
* Adding handle: recv: 0
* Curl_addHandleToPipeline: length: 1
* - Conn 0 (0x7fdb13804000) send_pipe: 1, recv_pipe: 0
* About to connect() to localhost port 8080 (#0)
* Trying ::1...
* Trying fe80::1...
* Trying 127.0.0.1...
You can’t perform that action at this time.