I hereby claim:
- I am a1iashoor on github.
- I am ashcrypt (https://keybase.io/ashcrypt) on keybase.
- I have a public key ASAEvTctxhjvvFxj1qFD8Pd-TZAb8_SSbgTOrHoT2v5w_go
To claim this, I am signing this object:
public static class CSV | |
{ | |
public static string ToCSV(this DataTable table) | |
{ | |
var columnHeaders = (from DataColumn x in table.Columns | |
select x.ColumnName).ToArray(); | |
StringBuilder builder = new StringBuilder(String.Join(",", columnHeaders)); | |
builder.Append("\n"); | |
foreach (DataRow row in table.Rows) |
I hereby claim:
To claim this, I am signing this object:
kill -9 $(lsof -i tcp:3000 -t) |
class Locale { | |
static var language: String { | |
set{ | |
defaults.setObject(newValue, forKey: "currentLanguage") | |
defaults.synchronize() | |
} | |
get{ | |
if let currentLanguage: String = defaults.stringForKey("currentLanguage"){ | |
return currentLanguage | |
} |
extension UIViewController { | |
func trackScreen(name: String) { | |
let tracker = GAI.sharedInstance().defaultTracker | |
tracker.set(kGAIScreenName, value: name) | |
let builder = GAIDictionaryBuilder.createScreenView() | |
tracker.send(builder.build() as [NSObject : AnyObject]) | |
} | |
func trackEvent(category: String, action: String, label: String, value: NSNumber?) { |
class Api::V1::OmniauthController < ApplicationController | |
skip_before_filter :verify_authenticity_token, :if => Proc.new { |c| c.request.format == 'application/json' } | |
before_filter :authenticate_user!, :except => [:create, :failure] | |
def new | |
end | |
def create | |
params[:access_token] = decrypt(params[:access_token]) | |
auth_access_token = params[:access_token] |