Skip to content

Instantly share code, notes, and snippets.

View shushugah's full-sized avatar
:octocat:
Why is GitHub supporting a child separation agency?

yonatan miller shushugah

:octocat:
Why is GitHub supporting a child separation agency?
View GitHub Profile
@shushugah
shushugah / TechWorkersBerlin_Agenda.md
Last active June 24, 2019 09:26
Agenda for first Tech Workers Coalition Berlin meeting

Tech Workers Coalition

Tech Workers Coalition Berlin

Tech Workers have a lot of potential power to change society. Anyone who identifies as a tech worker and is interested in learning how to build collective power or get involved in a campaign is welcome. Tech Workers are currently organising against gender pay gaps, workplace harassment, surveillance technologies, amongst other things. This document is an agenda item for the first meeting of Tech Workers Coalition Berlin.

A panel about Tech Workers Movement was held earlier this month 10 June 2019 at Aquarium Am Südblock, featuring Logic Magazine co-founders Ben Tarnoff and Moira Weigel. Ben, who is also an organiser of the Boston chapter, will be present during the meeting. You can click to watch the video or listen for audio.

2

@shushugah
shushugah / git
Created September 27, 2017 10:56
Useful git commands
`git log -- file_path_name --follow` // will show all relevant commits for renamed/deleted files
@shushugah
shushugah / InitialReactionsToReactWrittenInReact.js
Last active September 22, 2017 12:57
Initial Reactions ToReact Written in React
import React from 'react';
import ReactDom from 'react-dom';
class FirstImpressions extends React.Component {
const impressionComponents = this._getImpressions();
render() {
return(
<div>
<h1>I am JSX</h1>
<p className="a_css_class_name">
@shushugah
shushugah / rails-autoloading.md
Last active October 6, 2017 09:58
Rails Autoloading Behavior and Module name spacing
# app/models/campaign.rb 
class Campaign; end # This class is completely irrelevent to our code, but has same class name as the other campaign class.

# app/resources/homepage/apple.rb
module Resources
  module Homepage
    class Apple < Campaign
      campaign_method!  # This fails because apple.rb is loaded alphabetically before resources/homepage/campaign.rb 
 end
var submit = $("button");
var inputField = $("input");
var menuType = $("select");
var listContainer = $("#listContainer");
var selectType;
var results;
submit.on('click', function(){
var artistName = inputField.val();
selectType = menuType.val();
// Copygright 2016 Google Inc. All rights reserved.
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to writing, software distributed
// under the License is distributed on a "AS IS" BASIS, WITHOUT WARRANTIES OR
// CONDITIONS OF ANY KIND, either express or implied.
//
#2 models
class EarlyVoteSite < ActiveRecord::Base
has_and_belongs_to_many :locality,
:foreign_key => 'locality_id', :primary_key => 'p_id'
end
class Locality < ActiveRecord::Base
has_and_belongs_to_many :early_vote_sites,
class Alert < ActiveRecord::Base
belongs_to :recipient
has_many :services
#make variable/method Service.find_by(name: self.service_name).traffic
def bad_service?
Service.find_by(name: self.service_name).traffic =! "GOOD SERVICE"
end
def self.current_train_status
# Add your own tasks in files placed in lib/tasks ending in .rake,
# for example lib/tasks/capistrano.rake, and they will automatically be available to Rarequire File.expand_path('../config/application', __FILE__)
require File.expand_path('../config/application', __FILE__)
Rails.application.load_tasks
task :text_each_alert => :environment do
Alert.all.each do |alert|
Rails.application.routes.draw do
resources :contacts
resources :recipients