Skip to content

Instantly share code, notes, and snippets.

View mazikwyry's full-sized avatar
🍔

Adam Mazur mazikwyry

🍔
  • Global App Testing
  • Wyry
View GitHub Profile
class HelloWorld < React::Component::Base
param :time, type: Time
render do
p do
span { "Hello, " }
input(type: :text, placeholder: "Your Name Here")
span { "! It is #{params.time}"}
button(type: :button) { "login!" }.on(:click) do
login!
end if valid_new_input?
class ContributionProcessWidget extends Component {
render() {
const {
actions: {
setCurrentStep,
setFormField,
setFormFieldError,
setNotification,
patchUsersTransaction,
postUsersTransaction,
h1 = {"data"=>[{"id"=>"614", "type"=>"posts", "attributes"=>{"type"=>"Post", "message"=>"Flip the table?\nSo what possibilities exist regarding handing over Startcoin (SC) to the community? I have an idea that is simple and easy to administer. Instead of focusing on using a volatile crypto (SC) to fund projects we could encourage projects to offer rewards in SC to community members that backed their project. In order for this to work we would need to create a community culture that is biased towards financially supporting projects that offer a decent SC reward. Imagine projects having a far greater chance of getting funded if they offer a 10% SC reward (something like 10 cents worth of SC for every dollar a backer contributes). The project lister would be trusted to send out SC to backers addresses (posted in project comments section by backers) at the close of a successful funding and if they did not it would obviously hurt their reputation. Obviously if the project lister needs to raise $100 they should a
require 'bundler/setup'
require 'multijson_schema_generator'
require 'json'
require 'benchmark'
json1 = '{"data":[{"id":"614","type":"posts","attributes":{"type":"Post","message":"Flip the table?\nSo what possibilities exist regarding handing over Startcoin (SC) to the community? I have an idea that is simple and easy to administer. Instead of focusing on using a volatile crypto (SC) to fund projects we could encourage projects to offer rewards in SC to community members that backed their project. In order for this to work we would need to create a community culture that is biased towards financially supporting projects that offer a decent SC reward. Imagine projects having a far greater chance of getting funded if they offer a 10% SC reward (something like 10 cents worth of SC for every dollar a backer contributes). The project lister would be trusted to send out SC to backers addresses (posted in project comments section by backers) at the close of a successful funding and if they did not it would obviou
[
{
"request":{
"method":"GET",
"url":"/achievement_activities.json",
"query_string_params":{
"query":"test"
},
"body":null,
"headers":[
def twitter_async_connect cookie, current_user=nil, country_code = nil
oauth_token, outh_token_secret = SocialProvider::Manager.oauth_tokens_from_access_token(cookie[:twitter_oauth_token])
twitter_user = Twitter::REST::Client.new do |config|
config.consumer_key = ENV['TWITTER_KEY']
config.consumer_secret = ENV['TWITTER_SECRET']
config.access_token = oauth_token
config.access_token_secret = outh_token_secret
end
user = twitter_user.user
omiauth = User.oauth_object({
var SocialLogins = {
facebook: function(callback){
hello.login('facebook', {scope: 'email, user_friends, publish_actions'}, function(data){
$.cookie('facebook_oauth_token', data.authResponse.access_token, { expires: 7, path: '/' });
callback();
});
},
twitter: function(callback){
hello.login('twitter', {}, function(data){
$.cookie('twitter_oauth_token', data.authResponse.access_token, { expires: 7, path: '/' });
2015-02-10 21:03:50, Info MOUPG SetupHost::Initialize
2015-02-10 21:03:50, Info MOUPG SetupHost::Initialize: ModulePath = [C:\$Windows.~BT\Sources]
2015-02-10 21:03:50, Info MOUPG SetupHost::Initialize: WorkingPath = [C:\$Windows.~BT\Sources]
2015-02-10 21:03:50, Info MOUPG SetupHost::Initialize: LoggingPath = [C:\$Windows.~BT\Sources\Panther]
2015-02-10 21:03:50, Info MOUPG SetupHost::Initialize: MediaPath = [F:]
2015-02-10 21:03:50, Info MOUPG SetupHost::Initialize: InstallFilePath = [F:\Sources\Install.wim]
2015-02-10 21:03:50, Info MOUPG SetupHost::Initialize: WinReFilePath = []
2015-02-10 21:03:50, Info MOUPG SetupHost::Initialize: ServicingStackFilePath = []
2015-02-10 21:03:50, Info MOUPG SetupHost::Initialize: CmdLine = [/Install /Media /ProcessId 4604 /InstallFile
en:
board:
destroy: "Delete"
add_comment: Add comment
hide_users_post: "Hide users post"
view_more_comments: "View more comments..."
comment: Comment
wait: Wait...
share: Share
share_also: SHARE ASLO ON
@mazikwyry
mazikwyry / job_offer.cpp
Last active August 29, 2015 14:02
Job Offer C++
using namespace System;
using namespace System::ComponentModel;
using namespace System::Collections;
using namespace System::Data;
using namespace System::Collections::Generic;
namespace JobOffer {
bool checkApplicant(JobApplicant^ applicant){
if( applicant->languageExpirience.Contains("C++") &&