Skip to content

Instantly share code, notes, and snippets.

<link rel="import" href="../core-scaffold/core-scaffold.html">
<link rel="import" href="../core-header-panel/core-header-panel.html">
<link rel="import" href="../core-menu/core-menu.html">
<link rel="import" href="../core-item/core-item.html">
<link rel="import" href="../core-icon-button/core-icon-button.html">
<link rel="import" href="../core-toolbar/core-toolbar.html">
<link rel="import" href="../core-field/core-field.html">
<link rel="import" href="../core-icon/core-icon.html">
<link rel="import" href="../core-input/core-input.html">
<link rel="import" href="../core-icons/core-icons.html">
#!/usr/bin/env ruby
#
# Convert blogger (blogspot) posts to jekyll posts
#
# Basic Usage
# -----------
#
# ./blogger_to_jekyll.rb feed_url
#
# where `feed_url` can have the following format:
@phatak-dev
phatak-dev / gist:71c55557443092fdbd22
Created August 3, 2014 18:24
Not able to Resolve R
> sbt compile
Detected sbt version 0.13.5
[info] Loading project definition from /tmp/macroid-starter/project
[info] Set current project to macroid-starter (in build file:/tmp/macroid-starter/)
[info] Generating R.java
[info] Compiling 1 Scala source and 1 Java source to /tmp/macroid-starter/target/android-bin/classes...
[error] /tmp/macroid-starter/src/main/scala/com/example/macroid/starter/MainActivity.scala:13: object R is not a member of package com.example.macroid.starter
[error] import com.example.macroid.starter.R
[error] ^
[error] one error found
@phatak-dev
phatak-dev / README.md
Last active July 2, 2021 05:03
Functional Programming in C++

#Compilng You need g++ 4.9 to compile this code. Follow these steps to install g++-4.9

After installing run the following command to compile

/usr/bin/g++-4.9 -std=c++11 lambda.cpp

#Running

./a.out
@phatak-dev
phatak-dev / INSTALL.md
Last active August 29, 2015 14:09
Installation steps for MEAN session
@phatak-dev
phatak-dev / gist:e75d5d0d773b857903c1
Last active November 14, 2021 23:46
Spark wholeTextFiles
val sparkConf = new SparkConf().setMaster("local").setAppName("text")
val sc = new SparkContext(sparkConf)
val hadoopConf = sc.hadoopConfiguration
//set the aws secret information
hadoopConf.set("fs.s3.impl", "org.apache.hadoop.fs.s3native.NativeS3FileSystem")
hadoopConf.set("fs.s3n.awsAccessKeyId","youraccesskeyid")
hadoopConf.set("fs.s3n.awsSecretAccessKey","secretkey")