Skip to content

Instantly share code, notes, and snippets.

View jekku's full-sized avatar
💧
Not so almighty all rounder

Jekri Preclaro Orlina jekku

💧
Not so almighty all rounder
View GitHub Profile
@jekku
jekku / simulate.ex
Last active February 26, 2018 12:34
Backroom.Endpoint.broadcast(
"store:crosstown-doughnuts-soho",
"driver_update:JGGf6",
%{
name: "Jekri Orlina",
vehicle: "car",
phone: "+442012345678",
pickup_details: "ETA in 15 minutes"
}
)
describe('what it is', () => {
it('should take time', () => {
expect(things).to.(takeTime())
})
})
  • Check for wireless adapter using
ifconfig
iwconfig
  • Get the wireless adapter's id and start airmon-ng

The Orlina man guide from the grandfather

The 5 Elements of Appreciation

  • Surprise
  • Thrill
  • Timing
  • Concern
  • Convenience
Crm.ArtistSearchVariableMixin = Em.Mixin.create
perPage: null
sortPage: null
# selected questions
selectedQuestions: {}
selectedQuestionIds: []
selectedQuestionAnswers: []
selectedEthnicities: (->
@jekku
jekku / x.js
Last active December 15, 2016 06:22
//array reducer
function todos(state = initialState, action) {
switch (action.type) {
case ADD_TODO:
return [
...state,
todo(null, action)
]
case TOGGLE_TODO:
return state.map(t => todo (t, action));
exports.returnerSwitch = (req, res, next) => {
switch (req.data) {
case 'say hi':
return res.send({'message': 'say hi'});
case 'say goodbye':
return res.send({'message': 'say goodbye'});
default:
return next('nothing to say');
}
};
exports.randomFunction = (req, res, next) => {
if (req.condition) {
return res.send(req.condition)
}
if (req.condition2) {
return res.send(req.condition2)
}
res.send({});
@jekku
jekku / endpoints.md
Last active December 18, 2015 16:42

Promises and Async.js

Sometimes, you want to execute a function in different parameters at the same time.

Using async :

let jobs;