Skip to content

Instantly share code, notes, and snippets.

View oozzal's full-sized avatar
🇳🇵
learning

Uzzal Devkota oozzal

🇳🇵
learning
View GitHub Profile
<object width='425' height='344'>
<param name='movie' value='http://www.youtube.com/v/a0BOPX8yy4g&amp;fs=1' />
<param name='allowFullScreen' value='true' />
<param name='allowscriptaccess' value='always' />
<embed id='ytplayer' src='http://www.youtube.com/v/a0BOPX8yy4g&amp;fs=1' type='application/x-shockwave-flash' width='425' height='344' allowscriptaccess='always' allowfullscreen='true' />
</object>
<div class="STplayer STplayerEmbedded STplayerBarebones" id="STtranscriptEmbed_1_a0BOPX8yy4g" data-version="1.0">
<div class="STbar">
<div class="STlogo"><a href="http://speakertext.com/captionbox?ref=cb" target="_blank"></a></div>
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8">
</head>
<body>
<div class="viewport"></div>
<script src="//cdnjs.cloudflare.com/ajax/libs/three.js/r58/three.min.js"></script>
<script src="//threejs.org/examples/js/controls/OrbitControls.js"></script>
@oozzal
oozzal / mNFRg1Tu1y8_transcript.html
Last active August 29, 2015 14:02
SpeakerText Captionbox Sample HTML
<object type="application/x-shockwave-flash" id="STautoID1" name="STautoID1" data="http://www.youtube.com/v/mNFRg1Tu1y8&amp;fs=1?&amp;enablejsapi=1&amp;playerapiid=STautoID1" width="425" height="344" class="STvideoPlayer" style="visibility: visible;">
<param name="allowFullScreen" value="true">
<param name="allowscriptaccess" value="always">
<param name="allowScriptAccess" value="always">
</object>
<div class="STplayer STplayerEmbedded STplayerBarebones" data-version="1.0" id="STtranscriptEmbed_1_mNFRg1Tu1y8">
<div class="STbar">
<div class="STlogo">
<a target="_blank" href="http://speakertext.com/captionbox?ref=cb"></a>
package main
import "io/ioutil"
func main() {
f, err := ioutil.ReadFile("go_file.txt")
if err != nil { panic(err) }
println(string(f))
}
package main
import (
"io/ioutil"
"os"
"strings"
)
func stringInSlice(a string, list []string) bool {
for _, b := range list {
@oozzal
oozzal / mini_server.py
Last active August 29, 2015 14:02
Simplest servers in Ruby and Python
python -m SimpleHTTPServer 5000
@oozzal
oozzal / you_complete_me_fix.sh
Created June 26, 2014 05:50
Fix Valloric/YouCompleteMe
alias vi="DYLD_FORCE_FLAT_NAMESPACE=1 vim"
alias vim="DYLD_FORCE_FLAT_NAMESPACE=1 vim"
# Author: Pieter Noordhuis
# Description: Simple demo to showcase Redis PubSub with EventMachine
#
# Update 7 Oct 2010:
# - This example does *not* appear to work with Chrome >=6.0. Apparently,
# the WebSocket protocol implementation in the cramp gem does not work
# well with Chrome's (newer) WebSocket implementation.
#
# Requirements:
# - rubygems: eventmachine, thin, cramp, sinatra, yajl-ruby
@oozzal
oozzal / mac_mail.sh
Created August 12, 2014 11:31
Send mail from mac terminal.
mail -s "Cool Subject" theoozzal+notes@gmail.com <<EOF
map <silent> <C-i> :NERDTreeToggle<CR>
EOF
@oozzal
oozzal / cross_compile_go.sh
Created September 5, 2014 09:01
Cross Compiling Go Scripts.
# install go
go get github.com/laher/goxc
# build cross-compilers
goxc -t
# create a project in $GO_PATH/src/<project-dir>
# inside project-dir
# build binaries for different platforms
goxc