This file contains 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
meta: | |
id: cannibal | |
file-extension: cpj | |
endian: le | |
seq: | |
- id: s_cpj_file_header | |
type: s_cpj_file_header | |
- id: s_cpj_chunk | |
type: s_cpj_chunk_header | |
repeat: eos |
This file contains 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
set number | |
set tabstop=4 | |
set expandtab | |
call plug#begin('~/.config/nvim/plugged') | |
Plug 'tpope/vim-fugitive' | |
Plug 'tpope/vim-surround' | |
Plug 'vim-airline/vim-airline' | |
Plug 'nvie/vim-flake8' | |
Plug 'pangloss/vim-javascript' | |
Plug 'tomasr/molokai' |
This file contains 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" | |
"runtime" | |
"strconv" | |
) | |
func fizzBuzz(n int, fizzChan chan string) { | |
switch { |
This file contains 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
#[macro_use] | |
extern crate stdweb; | |
use stdweb::traits::*; | |
use stdweb::unstable::TryInto; | |
use stdweb::web::{ | |
document, | |
CanvasRenderingContext2d | |
}; | |
use stdweb::web::html_element::CanvasElement; | |
fn scale_x(n: i32) -> f64 { |
This file contains 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
{{template "header.html" .}} | |
<style type="text/css"> | |
html,body, #map-canvas{height:100%;margin: 0;padding: 0} | |
</style> | |
<script type="text/javascript" src="https://maps.googleapis.com/maps/api/js?key=AIzaSyAo39cDp-mOrMZ3nh65 | |
UKzIi2HLBjeNqlA"> | |
</script> | |
<script type="text/javascript"> | |
var map; | |
var markers = []; |
This file contains 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
set number | |
set tabstop=4 | |
set expandtab | |
call plug#begin('~/.config/nvim/plugged') | |
Plug 'tpope/vim-fugitive' | |
Plug 'vim-airline/vim-airline' | |
Plug 'nvie/vim-flake8' | |
Plug 'pangloss/vim-javascript' | |
Plug 'tomasr/molokai' | |
Plug 'valloric/youcompleteme' |
This file contains 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; | |
use std::io::BufRead; | |
fn main() { | |
let stdin = io::stdin(); | |
let mut sum:u32 = 0; | |
for line in stdin.lock().lines() { | |
let nums:Vec<u32> = line.unwrap().split_whitespace().map(|x|{ | |
match x.parse::<u32>(){ | |
Ok(n)=>n, | |
Err(e)=>panic!("{:?}", e), |
This file contains 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() { | |
println!("Hello, world!"); | |
let mut input = String::new(); | |
io::stdin().read_line(&mut input).unwrap(); | |
let nums: Vec<u32> = input.chars().map(|x| { | |
match x.to_digit(10){ | |
Some(n)=>n, | |
_=>10, | |
} |
This file contains 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::path::Path; | |
extern crate rusqlite; | |
#[macro_use] | |
extern crate mysql; | |
use rusqlite::Connection; | |
use mysql as my; | |
#[derive(Debug)] | |
struct Warning{ | |
id:i32, | |
user_id:i32, |
This file contains 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 strict"; | |
class animal{ | |
constructor(type,name){ | |
this.type = type; | |
this.name = name; | |
} | |
} | |
class dcStack{ |
NewerOlder