Skip to content

Instantly share code, notes, and snippets.

View vinitkumar's full-sized avatar
Focusing

Vinit Kumar vinitkumar

Focusing
View GitHub Profile
var demo = new Vue({
el: '#demo',
created: function() {
this.fetchData();
},
data: {
organization: 'github',
users: null
},
watch: {
<!doctype html>
<html>
<head>
<script src="https://unpkg.com/[email protected]/dist/vue.js"></script>
</head>
<style>
.github-img {
height: 150px;
width: 150px;
border-radius: 50%;
DATABASES = {
'default': dj_database_url.parse(os.environ.get('DATABASE_URL', 'postgres://localhost/testproject'))
}
CKEDITOR_SETTINGS = {
'language': '{{ language }}',
'toolbar': 'CMS',
'toolbar_CMS': [
['Undo', 'Redo'],
['cmsplugins', 'cmswidget', '-', 'ShowBlocks'],
['Format', 'Styles'],
[ 'Link', 'Unlink', 'Anchor' ],
['TextColor', 'BGColor', '-', 'PasteText', 'PasteFromWord'],
['Maximize', ''],
#include <stdio.h>
#include <stdlib.h>
typedef struct node {
int val;
struct node *next;
} node_t;
// pop will return the element that is popped and moves the head
// to the next head
brew install macvim --with-cscope --with-lua --with-override-system-vim --with-luajit --with-python3
use std::io;
fn main() {
loop {
let mut sentence = String::new();
io::stdin().read_line(&mut sentence)
.expect("Failed to read line");
println!("You have guessed: {}", sentence);
let allWords: Vec<&str> = sentence.split(" ").collect();
let firstWord = allWords[0];
#include <iostream>
#include <stdio.h>
using namespace std;
namespace Console {
class Cat {
public:
void doSomething() {
std::cout << "I work";
@vinitkumar
vinitkumar / db.py
Last active November 29, 2016 16:28
# https://github.com/coleifer/peewee/blob/182015911fa6893168f016063ea6b97b0fbbde93/peewee.py
from datetime import datetime
import logging
import os
import re
import sqlite3
import time
logger = loggin.getLogger('doodle')
package main
import (
"fmt"
"io/ioutil"
"log"
"net/http"
"net/http/cookiejar"
"net/url"