Skip to content

Instantly share code, notes, and snippets.

@CodeGolfScotland
CodeGolfScotland / June-2016-sillyCASE.md
Last active January 25, 2017 11:55
The June 2016 challenge

June 2016 - sillyCASE

Task:

Create a function that takes a string and returns that string with the first half lowercased and the last half uppercased.

Example:

foobar => fooBAR

##React Countries Lab/Homework

  • Add more information about each country in the CountryInfoBox
  • Create a new sub component of CountryInfoBox displaying the codes of the bordering countries.

Further to consider:

  • How could we display the details of each bordering country?
  • How could we filter by region?
@scott-ad-riley
scott-ad-riley / file.md
Last active May 23, 2016 21:59
Javascript Project Setup/Docs

#Javascript Project Setup/Docs

##Stuff Covered Here

  • Webpack
  • Express
  • Mocha
  • Chai
  • Lodash
@dhoelzgen
dhoelzgen / base_controller.rb
Last active October 7, 2021 16:19
CORS in Rails 4 APIs
class API::V1::BaseController < ApplicationController
skip_before_filter :verify_authenticity_token
before_filter :cors_preflight_check
after_filter :cors_set_access_control_headers
def cors_set_access_control_headers
headers['Access-Control-Allow-Origin'] = '*'
headers['Access-Control-Allow-Methods'] = 'POST, GET, PUT, DELETE, OPTIONS'
@octocat
octocat / .gitignore
Created February 27, 2014 19:38
Some common .gitignore configurations
# Compiled source #
###################
*.com
*.class
*.dll
*.exe
*.o
*.so
# Packages #