This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var demo = new Vue({ | |
el: '#demo', | |
created: function() { | |
this.fetchData(); | |
}, | |
data: { | |
organization: 'github', | |
users: null | |
}, | |
watch: { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!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%; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
DATABASES = { | |
'default': dj_database_url.parse(os.environ.get('DATABASE_URL', 'postgres://localhost/testproject')) | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
CKEDITOR_SETTINGS = { | |
'language': '{{ language }}', | |
'toolbar': 'CMS', | |
'toolbar_CMS': [ | |
['Undo', 'Redo'], | |
['cmsplugins', 'cmswidget', '-', 'ShowBlocks'], | |
['Format', 'Styles'], | |
[ 'Link', 'Unlink', 'Anchor' ], | |
['TextColor', 'BGColor', '-', 'PasteText', 'PasteFromWord'], | |
['Maximize', ''], |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
brew install macvim --with-cscope --with-lua --with-override-system-vim --with-luajit --with-python3 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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]; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <iostream> | |
#include <stdio.h> | |
using namespace std; | |
namespace Console { | |
class Cat { | |
public: | |
void doSomething() { | |
std::cout << "I work"; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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') |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"fmt" | |
"io/ioutil" | |
"log" | |
"net/http" | |
"net/http/cookiejar" | |
"net/url" |