Skip to content

Instantly share code, notes, and snippets.

View riteshn-niara's full-sized avatar

riteshn-niara

View GitHub Profile
@riteshn-niara
riteshn-niara / block-loop.go
Created October 22, 2017 20:02
Ctrl+C not exiting app
package main
import (
"fmt"
"github.com/Shopify/sarama"
"html"
"log"
"net/http"
"os"
"os/signal"
class Song
name = ndb.StringProperty()
genres = ndb.StringProperty(repeated=True)
>>> CSV >>>
song1, genre1, genre2
song2, genre3, genre4
song3, genre1
class Song
name = ndb.StringProperty()
genres = ndb.StringProperty(repeated=True)
>>> CSV >>>
song1, genre1, genre2
song2, genre3, genre4
song3, genre1
$.ajax('api1').success(function(data) {
// insert into dom - data
})
$.ajax('api2').success(function(data) {
// insert into dom - data2
})
<div>
<h1>{{ headingText }}</h1>
<table>
<tr>
<td>{{ data.col1 }}</td>
</tr>
</table>
</div>
let blacklists = ["https://mail.google.com/*", "*://mail.google.com/*"]
map <C-f> scrollPageDown
map <C-b> scrollPageUp
let searchalias y = "youtube"
(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...